个性化Shell终端折腾
2017年3月4日
在MAC环境下自定义shell终端的配色方案。
iterm2 + oh my zsh
安装iterm2
安装oh-my-zsh
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh |
安装完成后,切换dash
:
chsh -s /bin/zsh |
切换为原来的
dash
:chsh -s /bin/bash |
卸载oh-my-zsh:
uninstall_oh_my_zsh |
设置配色方案
使用 Solarized 配色方案:
#下载 |
设置语法高亮
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git |
设置主题
使用主题 agnoster。
此款主题需要字体
#更改配置文件 |
成果
参考:
在 Mac OS X 终端里使用 Solarized 配色方案
iTerm 2 && Oh My Zsh【DIY教程——亲身体验过程】
Mac下iTerm 2语法高亮配置及附带美化