iTerm2+oh-my-zsh配色
-
效果图,很帅气有木有
一、首先安装iTem2
- 安装好后的截图如下:
-
安装好后的截图
二、安装oh-my-zsh。
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
-
安装oh-my-zsh
- 安装成功如下图:
-
成功安装oh-my-zsh
三、安装Powerline
- 先安装pip
sudo easy_install pip
四、安装 Meslo 字体库。
- 方法1、可以直接复制下面命令到终端中安装:
# clone git clone https://github.com/powerline/fonts.git --depth=1 # install cd fonts ./install.sh # clean-up a bit cd .. rm -rf fonts - 然后在根目录下
.zshrc中插入下面内容:source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh - 配置.zshrc文件
vim ~/.zshrc source ~/.oh-my-zsh/plugins/incr/incr*.zsh source ~/.zshrc - 打开agnoster主题,按红框里面的编辑保存完退出就好了。
vim agnoster.zsh-theme - 2、更改shell:
chsh -s /bin/zsh