安装iTerm2
安装Oh my zsh
用来对主题进一步扩展
两种安装方式:curl或者wget
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
安装PowerLine
pip install powerline-status --user
安装字体库PowerFonts
mkdir ~/Desktop/OpenSource
cd ~/Desktop/OpenSource
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
安装配色方案(如Solarized Dark)
cd ~/Desktop/OpenSource
git clone https://github.com/altercation/solarized
cd solarized/iterm2-colors-solarized/
安装zsh主题(如agnoster)
cd ~/Desktop/OpenSource
git clone https://github.com/fcamblor/oh-my-zsh-agnoster-fcamblor.git
cd oh-my-zsh-agnoster-fcamblor/
./install
打开zshrc配置文件,将ZSH_THEME后面的字段改为agnoster。
vim ~/.zshrc
更改配置
‘command + ,’ 打开偏好设置:
Profiles——Text 改变字体字号
Profiles——Colors 改变配色