安裝HomeBrew
參考 http://www.itdecent.cn/p/31b7789da5f5
安裝iTerm
brew cask install iterm2
Oh My Zsh
參考http://www.itdecent.cn/p/325dec5cc173
修改主題
~/.zshrc
ZSH_THEME="agnoster"
更多主題參考http://www.itdecent.cn/p/325dec5cc173
更改主題后,會(huì)發(fā)現(xiàn)不能顯示字體圖標(biāo),需要安裝powerline 字體
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
卸載
./uninstall.sh
設(shè)置iTerm2的字體
iTerm2->Preferences->Profiles->Text->Change Font-> 12pt Meslo LG S DZ Regular for Powerline
設(shè)置mac自帶終端的字體
終端->偏好設(shè)置->字體
注意,所選擇的字體必須是powerline 字體列表中的