安装 oh my zsh

1. 安装 zsh + oh-my zsh

1
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

或者:

1
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

2. 安装 Tomorrow OS X Terminal Color Schemas

直接访问上面的链接地址下载即可,对于 OS X Terminal 的,直接下载之后,双击安装即可,如果觉得麻烦,也可以直接下载我打包好的:

Tomorrow OS X Terminal Color Schemas.zip

3. 安装 Pure

1
npm install --global pure-prompt

安装完成之后,进入到 oh-my-zshcustom 目录下,我的就是默认的,然后:

1
ln -s /path/to/pure.zsh

之后修改 oh-my-zsh 的主题为 pure

1
vi ~/.zshrc

修改:

1
ZSH_THEME="pure"`

4. 安装 zsh-syntax-highlighting

1
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

修改 ~/.zshrc

1
plugins = (...plugins zsh-syntax-highlighting)