这里介绍一下在mac中使用 item2 + oh-my-zsh 方案来配套终端输入。
界面会比较舒爽。

安装item2

本地下载好item2,这个就和普通的安装软件一样,直接选择下载,安装就ok了。可以手动安装,也可以使用homebrew安装

安装 oh-my-zsh

先附上下载github地址:https://github.com/robbyrussell/oh-my-zsh
这里采用 curl 的方式下载,打开item 软件,在上面输入

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

选择一个好看的字体和主题

我选择的是 https://github.com/powerline/fonts/tree/master/Inconsolata
这个字体,看起来比较舒服,先下载这个字体,然后本地安装
https://github.com/powerline/fonts/blob/master/Inconsolata/Inconsolata for Powerline.otf

下载字体

item2 + oh-my-zsh

安装下载的字体

item2 + oh-my-zsh

在item2 中配置安装的字体

item2 > preference->profile->text
item2 + oh-my-zsh
item2 + oh-my-zsh

配置oh-my-zhs 主题

可以在这个地址中选择一个自己喜欢的字体去
https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
比如这里选择的是 afowler 这种主题
先打开根目录中的 .zshrc这个文件(这里用atom打开根目录)
直接在item 中输入

atom .

使用atom 打开了根文件夹下所有文件,修改.zshrc文件中的主题部分,如下:

item2 + oh-my-zsh
别忘记在item中source 一下,使之生效

source ~/.zhsrc

就可发现item2已近应用了该主题和字体,界面就会变得很酷,
item2 + oh-my-zsh
还有一个小技巧,可以在item -> preference->profiles->working Directory中配置自己的工作目录,这样每次打开item就直接在该工作目录下,就不用自己去cd 了,比较实用。
item2 + oh-my-zsh

相关文章: