截圖效果:
安裝ITerm2
brew cask install iterm2
- 如果沒有安裝brew請在命令行執(zhí)行安裝brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- 如果不想安裝brew可以使用去ITerm官網下載并安裝.
下載主題
保存到 本地后 打開iTerm-> profiles -> colors -> load presets.
安裝 oh my zsh
安裝命令
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
下載完成后編輯.zshrc
文件并指定主題為agnoster
vim ~/.zshrc
set ZSH_THEME="agnoster"
安裝Powerlevel9k主題
安裝命令
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
下載完成后編輯.zashrc
文件并指定主題
vim ~/.zshrc
set ZSH_THEME="powerlevel9k/powerlevel9k".
自定義設置可以參考這里.
安裝字體
- Meslo
-
Source Code Pro
@14px
字體比較協(xié)調. -
Others @ powerline fonts
下載后安裝字體在iTerm2設置
iTerm -> Preferences -> Profiles -> Text -> Change Font.
重啟即可生效
其他額外工作
- auto suggestions
- word jumping with arrow keys
- shorter prompt style
- syntax highlighting
Auto suggestions (for Oh My Zsh)
- 下載到本地
git clone git://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
- 在
.zshrc
插件設置中添加插件plugins=(zsh-autosuggestions)
- 重啟iTerm2