Mac 安装 oh-my-zsh
1. 安装 zsh + oh-my zsh
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 -)"
2. 安装 Tomorrow OS X Terminal Color Schemas
直接访问上面的链接地址下载即可,对于 OS X Terminal 的,直接下载之后,双击安装即可,如果觉得麻烦,也可以直接下载我打包好的:
Tomorrow OS X Terminal Color Schemas.zip
3. 安装 Pure
npm install --global pure-prompt
安装完成之后,进入到 oh-my-zsh
的 custom
目录下,我的就是默认的,然后:
ln -s /path/to/pure.zsh
之后修改 oh-my-zsh
的主题为 pure
vi ~/.zshrc
修改:
ZSH_THEME="pure"`
4. 安装 zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
修改 ~/.zshrc
plugins = (...plugins zsh-syntax-highlighting)
本作品采用《CC 协议》,转载必须注明作者和本文链接
推荐文章: