- 下载iTerm2
- 下载oh-my-zsh
brew install zsh
chsh -s /bin/zsh
echo export PATH='/usr/local/bin:$PATH' >> ~/.zshrc
- 使用agnoster主题
vi ~/.zshrc
ZSH_THEME="agnoster"
source ~/.zshrc
- 安装Powerline对应的字体库
$ sudo easy_install pip
$ pip install powerline-status
git clone https://github.com/powerline/fonts.git
cd fonts
./install.sh
进入iTerm2设置-Profiles-Text-Font,选择Powerline字体
-
安装Solarized配色方案
Solarized仓库;[https://github.com/altercation/solarized]
(https://github.com/altercation/solarized)
进入目录solarized/iterm2-colors-solarized,双击Solarized Dark.itermcolors、Solarized Light.itermcolors导入主题;
iTerm2设置->Profiles->Colors->Color Presets…;
-
自动跳转autojump
---下载插件
brew install autojump
----修改zshrc
vi ~/.zshrc
plugins=(git autojump)
source ~/.zshrc
- 增加指令高亮效果
---下载插件
brew install zsh-syntax-highlighting
----修改zshrc
vi ~/.zshrc
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
plugins=( zsh-syntax-highlighting)
source ~/.zshrc
参考:zsh | 程序员的自我修养
iTerm2+powerline+oh-my-zsh的安装&修改&配置
mac配置oh-my-zsh记录
网友评论