oh-my-zsh使用

2017-11-28  本文已影响0人  Willworkgogogo

1、安装

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

// homebrew 方法安装
brew install zsh zsh-completions

// 成功后或已安装zsh, 检查版本, 输出版本必须高于v4.3.9
zsh --version

2、设置为默认shell

chsh -s $(which zsh)
// 然后重启

3、设置主体

vi ~/.zshrc

// 找到
ZSH_THEME="agnoster"

// 设置好后
// 需执行
source ~/.zshrc

设置mac原生Terminal终端主题

// 1、下载主题
git clone git://github.com/altercation/solarized.git

// 2、找到下载的内容
// solarized ----> iterm2-colors-solarized 下依次双击 Solarized Dark.itermcolors 和 Solarized Light.itermcolors,这两个主题将自动添加至终端主题里,如下图:
可选中设置一个为默认主题。
终端主题添加成功 我现在的样式
上一篇下一篇

猜你喜欢

热点阅读