1.下載安裝 iTerm 2?
2.安裝powerline?
? ? 1.?sudo easy_install pip
? ? 2.pip install powerline -status?
? ? ? ? tip: 遇到安裝權(quán)限問題使用命令:?pip install powerline -status --user -U
3.安裝 oh-my-zsh
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
4. 安裝字體
git clone https://github.com/powerline/fonts.git
cd fonts
./install.sh
5.導(dǎo)入配色
git clone https://github.com/altercation/solarized 并安裝
進(jìn)入系統(tǒng)偏好設(shè)置惨远,profiles->Colors選擇剛剛導(dǎo)入的配色方案
6.主題設(shè)置
git clone https://github.com/fcamblor/oh-my-zsh-agnoster-fcamblor
cd oh-my-zsh-agnoster-fcamblor ./install
安裝成功之后啊楚,編輯~/.zshrc文件连霉,將ZSH_THEME改為agnoster
7.添加高亮效果
brew?install?zsh-syntax-highlighting
編輯.zshrc文件片习,在最后添加如下內(nèi)容
source /Users/WENBO/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh plugins=(zsh-syntax-highlighting)
8.添加自動補(bǔ)全記錄上次命令
克隆倉庫到本地 ~/.oh-my-zsh/custom/plugins 路徑下
git clone git://github.com/zsh-users/zsh-autosuggestions?$ZSH_CUSTOM/plugins/zsh-autosuggestions
用 vim 打開 .zshrc 文件瓶盛,找到插件設(shè)置命令腊脱,默認(rèn)是?plugins=(git) ,我們把它修改為 ??plugins=(zsh-autosuggestions git)
當(dāng)你重新打開終端的時候可能看不到變化围小,可能你的字體顏色太淡了
? ?移動到 ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions 路徑下
? ? cd?~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
? ?用 vim 打開 zsh-autosuggestions.zsh 文件宪迟,修改 ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=10'