安装
- 
iTerm2:https://www.iterm2.com/ - 默认使用zsh终端
 1chsh -s /bin/zsh
- 
Oh my zsh 1 2# curl 安装方式 sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- 
PowerLine 1 2 3 4 5// 安装powerline pip install powerline-status --user // 如果提示没有安装pip 先安装pip sudo easy_install pip
- 
PowerFonts 1 2 3 4 5// 使用HTTPS下载有可能会失败 git clone git@github.com:powerline/fonts.git // 进入仓库文件夹,执行脚本 ./install.sh
- 
color-schemes 1 2// download https://iterm2colorschemes.com/
搭配
主题
使用
- 
导入外部主题 1 2 3 4 5 6 7//显示隐藏文件 defaults write com.apple.finder AppleShowAllFiles -bool true //不显示隐藏文件 defaults write com.apple.finder AppleShowAllFiles -bool false // 快捷键 Command + Shift + .- 根目录–>.oh-my-zsh(macOS系统会自动隐藏'.‘开头的文件)–>themes–>将想要的’-theme’文件粘贴到这个文件夹
 
- 
选择主题 - 根目录–>.zshrc
 1 2 3 4 5 6# Set name of the theme to load --- if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case, # to know which specific one was loaded, run: echo $RANDOM_THEME # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes ZSH_THEME="xxxx" # 把"xxxx"替换成想要的主题
挑选
配色
使用
- iTerm2–>Perferences–>Profiles–>Colors–>Color Presets
- 选择需要的颜色主题
- 点击Import引入外部颜色主题
 
挑选
成果

- 字体:ubuntu mono derivative powerline bold 26
- 配色:IC_Green_PPL
- 主题:Spaceship ZSH(外部主题)
- 插件:plugins=(git autojump extract rand-quote zsh-syntax-highlighting)
参考文章
- 
让你的iTerm更Geek!:https://www.jianshu.com/p/a0249778872e 
- 
常用的oh-my-zsh插件 https://zhuanlan.zhihu.com/p/61447507 
- 
mac上使用oh my zsh有哪些必备的插件推荐? https://www.zhihu.com/question/49284484 
- 
zsh oh-my-zsh 插件推荐 https://juejin.im/entry/6844903598300610568 
- 
Customizing the OS X Terminal https://medium.com/@Jarvski/customizing-the-os-x-terminal-11fda5c3dd5c 
 
             
            