安装HomeBrew
参考 https://www.jianshu.com/p/31b7789da5f5
安装iTerm
brew cask install iterm2
Oh My Zsh
参考https://www.jianshu.com/p/325dec5cc173
修改主题
~/.zshrc
ZSH_THEME="agnoster"
更多主题参考https://www.jianshu.com/p/325dec5cc173
更改主题后,会发现不能显示字体图标,需要安装powerline 字体
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
卸载
./uninstall.sh
设置iTerm2的字体
iTerm2->Preferences->Profiles->Text->Change Font-> 12pt Meslo LG S DZ Regular for Powerline
设置mac自带终端的字体
终端->偏好设置->字体
注意,所选择的字体必须是powerline 字体列表中的