1.上截圖:git
2.首先安裝item2github
(1)安裝homebrewshell
4.安裝Powerlinevim
pip install powerline-statusruby
5.安裝Meslo字體app
# clone
git clone https://github.com/powerline/fonts.git --depth=1
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fontscurl
6.配置item2:(iTerm2>Preferences>Profiles>Text>Change Font
),以下圖:編輯器
Non-ASCII Font
,先在綠色箭頭所指的地方打鉤,而後再重啓.
7.下載安裝solarized配色方案字體
進入剛下載的solarized目錄下:solarized/iterm2-colors-solarized
url
雙擊安裝 Solarized Dark.itermcolors
和 Solarized Light.itermcolors
可是不建議這樣安裝,由於如今iTerm2已經內置了這兩種配色。直接選擇就行
八、安裝agnoster主題。
.zshrc
,將ZSH_THEME後面字段改成agnoster
.
9.設置語法高亮
(1)直接使用homebrew
安裝zsh-syntax-highlighting
插件
brew install zsh-syntax-highlighting
(2)而後在根目錄下.zshrc
中插入下面內容:
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
10.自動提示命令:已經內置了,就不在說了
11.最後說一下效果圖中大拇指的配置:
(1)進入主題目錄
cd ~/.oh-my-zsh/themes
(2)打開agnoster主題,按紅框裏面的編輯保存完退出就行了
vim agnoster.zsh-theme
12.shell的切換
(1)查看shell
cat /etc/shells
(2)更改shell
chsh -s /bin/zsh
(3)查看當前shell,但不能時時反映shell,需重啓iTerm2:
echo $SHELL