Install Zsh.
Install Oh My Zsh.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Upgrade it.
Edit the config file.
#ZSH_THEME="robbyrussell"
ZSH_THEME="agnoster"
Reload the config.
Run.
git clone https://github.com/powerline/fonts.git
cd fonts
./install.sh
Change your iTermr2 font to Meslo LG L for Powerline.
autoload -Uz compinit
compinit
git config --add oh-my-zsh.hide-status 1
git config --add oh-my-zsh.hide-dirty 1
Edit your theme confi file.
cd ˜/.oh-my-zsh/themes/
vi agnoster.zsh-theme
Edit the file as follows.
prompt_dir() {
#prompt_segment blue $CURRENT_FG '%~'
prompt_segment blue $CURRENT_FG '%2~'
}
Apply changes.
cd ~/.oh-my-zsh
git stash
upgrade_oh_my_zsh
git stash pop