安装Oh my zsh

安装方法有两种,可以使用curl或wget,看自己环境或喜好:

# curl 安装方式
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/)"
# wget 安装方式
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/ -O -)"

iTerm2+Oh My Zsh最佳终端体验_其他

安装PowerLine
pip install powerline-status --user
安装PowerFonts
# git clone
git clone https:///powerline/fonts.git --depth=1
# cd to folder
cd fonts
# run install shell
./

iTerm2+Oh My Zsh最佳终端体验_其他_02
安装好字体库之后,我们来设置iTerm2的字体,具体的操作是iTerm2 -> Preferences -> Profiles -> Text,在Font区域

iTerm2+Oh My Zsh最佳终端体验_其他_03

  • 找到plugins,此时plugins中应该已经有了git,我们需要把高亮插件也加上。zsh-syntax-highlighting必须在最后一个。iTerm2+Oh My Zsh最佳终端体验_其他_04
  • 看最终效果图iTerm2+Oh My Zsh最佳终端体验_其他_05

参考

  • https://segmentfault.com/a/1190000014992947