做一个好看的终端。–Mac

首先呢下载item2,官方的下载地址:https://www.iterm2.com/downloads.html

其次,安装oh-my-zsh

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

把上边的代码放到item2中执行

前戏准备好了,下面开始正餐

首先要去安装字体。(如果不安装字体,会导致主题出现乱码。)

下载字体的地址:https://github.com/powerline/fonts/

下载主题的地址:https://github.com/robbyrussell/oh-my-zsh/wiki/Themes

字体对应主题(猜测)

我自己的主题案例

主题下载地址:https://github.com/powerline/fonts/

字体下载地址:https://github.com/powerline/fonts/blob/master/Inconsolata/Inconsolata%20for%20Powerline.otf
主题名字:agnoster

字体安装完成之后,打开ITem2APP

Mac 快捷键 command+,打开偏好设置。然后打开Profiles==>Text

修改Font和Non-ASCll Font 字体为;lnconsolata

然后就大功告成。