一、工具
- iTerm2
- Oh My Zsh
- agnoster主題
二溺忧、步驟
- 安裝iTerm2
- 將當(dāng)前shell切換為zsh
- 通過
cat /etc/shells
命令查看當(dāng)前系統(tǒng)已有的shell -
echo $SHELL
命令查看當(dāng)前選中的shell -
chsh -s /bin/zsh
可以切換shell為zsh
- 安裝Oh My Zsh:
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
三融欧、切換主題
- 所有主題在線預(yù)覽:https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
- 打開
.zshrc
文件(vi ~/.zshrc
),在搜索ZSH_THEME
敏弃,等號(hào)后的即是需要選則的主題ZSH_THEME="agnoster"
- Solarized Dark配色方案</br>下載完成之后解壓卦羡,在iTerm2的Preferences——Profiles——colors——Load Presets——Solarized Dark即可設(shè)置終端配色