Short description to his install “Oh-my-zsh” on a Mac with Agnoster theme with custom font
# Backup old .zshrc
cp ~/.zshrc ~/.zshrc.bak
# Install "oh-my-zsh"
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Install patched fonts
git clone https://github.com/powerline/fonts
cd fonts
./install.sh
Edit file ~/.zshrc
vi ~/.zshrc
# Find the ZSH_THEME and set it to agnoster
ZSH_THEME="agnoster"
# Change plugins to:
plugins=(
git
bundler
dotenv
macos
rake
rbenv
ruby
)
# hide username from prompt
prompt_context(){}
Apply changes
source ~/.zshrc
For the terminal set default font to for example “Meslo LG M Powerline” to enable git symbols
If you don’t like dark-blue on the prompt, you can easily change it with this commands:
vi ~/.oh-my-zsh/themes/agnoster.zsh-theme
# Locate prompt_dir() in the file
# Change to this
# Dir: current working directory
prompt_dir() {
prompt_segment white $CURRENT_FG '%~'
}
Short install info also here:
https://gist.github.com/tringn/a5a3ec9cec58bceadc196d46e292161b