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
if this is found go to install oh-my-zsh
if this is not found, install with brew following the steps below
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)"
brew tap homebrew/cask-fonts
brew install --force $( brew search font | grep nerd | tr '\n' ' ' )
Note: You may need to restart your mac for these fonts to show up
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.