Install from official site https://www.iterm2.com/ and set theme to Solarized Dark theme.
To display symbols correctly:
iterm2 > Profiles > Text > Change Font to "Meslo LG M DZ Regular for Powerline".
Enable word jump:
iterm2 > Profiles > Keys > Load Preset... and select "Natural Text Editing".
Make sure Zsh is installed with latest version.
$ zsh --version
It should return
zsh 5.2 or more recent. If not, install with brew.
$ brew install zsh
Check default shell with
echo $SHELL. MacOS default shell is /bin/bash. Find out the file path of zsh installed by brew.
$ which zsh
It should be /usr/local/bin/zsh. Check available shells with
cat /etc/shells. If the brew's zsh is not in the list, add it to the list.
$ echo $(which zsh) | sudo tee -a /etc/shells
Make Zsh the default shell.
chsh -s $(which zsh)
Restart the terminal.
Install Oh My Zsh
Oh-My-Zsh is an open source, community-driven framework for managing your ZSH configuration.
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
To use the theme shown above, set
ZSH_THEME="agnoster" to .zshrc.
For shorter prompt style, to remove "username@hostname", set DEFAULT_USER to to the value of
whoami in ~/.zshrc.
For syntax highlighting.
brew install zsh-syntax-highlighting
For Zsh completion.
brew install zsh-completions