curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | ZSH=~/.dotfiles/zsh sh
cp ~/.zshrc ~/.zshrc.orig
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh -s /bin/zsh
然后退出iterm2,再重启就ok。期间报的问题不要管直接按照步骤来就行了。
##参考链接: http://www.jianshu.com/p/77a4349bf67b