go to https://brew.sh
Note: Be sure to run the commands which brew tells you to run at the end of your brew install!
echo $SHELL
if this is zsh go to the next stage, if not check zsh is installed
which zsh
go to install oh-my-zsh
brew install zsh
to set zsh as your shell use chsh
chsh -s `which zsh`
close and reopen the terminal
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
I use the example of Meslo Nerd Font, feel free to install one you prefer.
Examples can be found here https://www.nerdfonts.com/font-downloads
brew search nerd-font
# select your fond from that list and install
brew install --cask font-meslo-lg-nerd-font
Note: You may need to restart your mac for these fonts to show up
WARNING: In your Mac Terminal app, make sure you use a nerd font as your font of choice before you continue
https://github.com/romkatv/powerlevel10k#oh-my-zsh
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
Now, edit the ZSH_THEME in ~/.zshrc file into :
ZSH_THEME="powerlevel10k/powerlevel10k"
then run
source ~/.zshrc
if for some reason you need to re-run your config, you can use this command.
p10k configure
Download zsh-autosuggestions :
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
Download zsh-syntax-higlighting :
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
Edit ~/.zshrc
file, find plugins=(git) replace plugins=(git) with :
plugins=(
# autoswitch_virtualenv
aws
git
zsh-autosuggestions
zsh-syntax-highlighting
)
Reopen your terminal, now you should be able to use the auto suggestions and syntax highlighting.