刚折腾完,做个备忘

样图:

iTerm 2

配置一番。

主题:Tomorrow Night

zsh

安装 zsh:

1
$ brew install zsh

/usr/local/bin/zsh 加入到 /etc/shells 中:

1
$ sudo sh -c "echo $(which zsh) >> /etc/shells"

设置默认 shell:

1
$ chsh -s $(which zsh)

安装 oh-my-zsh

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

安装后出现目录 ~/.oh-my-zsh/ 及配置文件 ~/.zshrc

安装 zsh 主题 powerlevel9k

1
$ git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k

设置主题,编辑 ~/.zshrc

1
ZSH_THEME="powerlevel9k/powerlevel9k"

安装 zsh 高亮插件

安装 zsh-syntax-highlighting

1
$ brew install zsh-syntax-highlighting

确认 ~/zshrc 中有以下语句:

1
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

参考 & 感谢