zsh --version
brew install zsh
brew
then follow these steps to get brew installed first/bin/bash -c "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh
)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/mahendra/.zprofile
11 eval "$(/opt/homebrew/bin/brew shellenv)"
sh -c “$(curl -fsSL
https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh
)"
Heads up we will be setting up most used Powerlevel10k theme
git clone --depth=1
https://github.com/romkatv/powerlevel10k.git
${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
.zshrc
file, set ZSH_THEME to following,ZSH_THEME="powerlevel10k/powerlevel10k"
source ~/.zshrc
on your terminal to start configure powerlevel10k theme.p10k configure
change the look and feelWe will add some list of plugins that will help with some tools used daily to boost productivity. Please be mindful of how many plugins you add as more plugins means more time it takes to start the terminal. Pick and chose the right ones for your shell.
We will start with yarn
, just add yarn
to plugins section of .zshrc
file,
plugins=(git yarn)
Directories must be visited first before they can be jumped to.
brew install autojump
Go through the output of the above command, you might have to add a line to your .zshrc
file, the example below works for M series MacBooks only:
[ -f /opt/homebrew/etc/profile.d/autojump.sh ] && . /opt/homebrew/etc/profile.d/autojump.sh
Run the following command to clone th repository into $ZSH_CUSTOM/plugins
(by default~/.oh-my-zsh/custom/plugins
)
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
Add the plugin to the list of plugins for Oh My Zsh to load (inside~/.zshrc
):
plugins=(
# other plugins...
zsh-autosuggestions
)
Run the following command to clone th repository into$ZSH_CUSTOM/plugins
(by default~/.oh-my-zsh/custom/plugins
)
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting