sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
For example Firacode:
brew tap homebrew/cask-fonts
brew cask install font-fira-code
And then set the default font in iTerm under:
Preferences / Profiles / Text
.
There change the font to Fira Code and check the checkbox "Use built-in powerline glyphs".
My favorites :
Prerequisite: iTerm2 installed on the machine
Choose one of the following themes.
More info can be found here
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
sed -i'.bak' -e 's/^\(ZSH_THEME=\s*\).*$/\ZSH_THEME=\"powerlevel10k\/powerlevel10k\"/' ~/.zshrc
rm .zshrc.bak
After the installation it will ask you to restart iTerm and will start the configuration wizard.
More info can be found here
git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
sed -i'.bak' -e 's/^\(ZSH_THEME=\s*\).*$/\ZSH_THEME=\"spaceship\"/' ~/.zshrc
rm .zshrc.bak
source .zshrc
- zsh-syntax-highlighting - shows if a command / alias / binary exists
- zsh-autosuggestions - adds autosugestion to your commands
- colored-man-pages - adds colors to your man pages
- ssh-agent - avoids having to type the password to unlock the ssh key all the time
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
sed -i'.bak' -e 's/^\(plugins=\s*\).*$/\plugins=(git zsh-syntax-highlighting zsh-autosuggestions colored-man-pages ssh-agent)/' ~/.zshrc
If it fails, check this article
sed -i '/# COMPLETION_WAITING_DOTS=\"true\"/s/^#//g' ~/.zshrc
rm .zshrc.bak
source .zshrc