安装oh-my-zsh
- sh -c “$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)”
- vi ~/.zshrc
- 打开后找到ZSH_THEME=”robbyrussell”修改为ZSH_THEME=”agnoster”
- 重启iterm
- 发现出现乱码,需要下载安装Powerline字体
- git clone https://github.com/powerline/fonts.git
- cd fonts
- ./install.sh
- 安装完字体库之后,把iTerm 2的设置里的Profile中的Text 选项卡中里的、 Font和Non-ASCII Font的字体都设置成 Powerline的字体,搜索框内输入Powerline查询并选中字体。
- 重启iterm2