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-zshcustom 目录下,我的就是默认的,然后:

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 协议》,转载必须注明作者和本文链接
讨论数量: 2

就是想评论下看看

fmt.Println("Hello")
3年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!
未填写
文章
1
粉丝
0
喜欢
0
收藏
0
排名:3473
访问:44
私信
所有博文
社区赞助商