zsh 介绍 http://foocoder.com/blog/wo-zai-yong-de-macruan-jian-2.html/

安装 zsh 与 oh-my-zsh

1
2
brew install zsh
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh

修改/etc/shells,添加/usr/local/bin/zsh

更改默认 shell 为 zsh

1
chsh -s /usr/local/bin/zsh

配置 iTerm2 的主题与字体

iTerm2 主页http://www.iterm2.com/

iTerm2 Solarized主题https://github.com/altercation/solarized/tree/master/iterm2-colors-solarized

在此我们使用 Solarized Dark主题,OMZ 里有一个与之配合的主题agnoster,修改~/.zshrc

1
2
export ZSH_THEME="agnoster"
DEFAULT_USER="xilaideng"

zsh powerline 主题

https://github.com/jeremyFreeAgent/oh-my-zsh-powerline-theme

https://github.com/milkbikis/powerline-shell

zsh主题列表https://github.com/robbyrussell/oh-my-zsh/wiki/themes

下载 zsh agnoster theme 所需要的字体

https://gist.github.com/qrush/1595572/raw/417a3fa36e35ca91d6d23ac961071094c26e5fad/Menlo-Powerline.otf

https://github.com/Lokaltog/powerline-fonts