将items2的配置修改为solarized
将solarized仓库下载到本地$ git clone git://github.com/altercation/solarized.git
在
/path/to/solarized/iterm2-colors-solarized
目录下有items相关的配置文件,如果只是想看一下当前标签页加载的效果
可以CMD i
在弹出的Preference中,选取Colors->Color Presets->Import…将你所喜欢的solarized主题加载进来,选定
喜欢的配置之后,就可以直接看到items的变化了,如果需要永久配置,则需要从菜单栏Profiles->Open Profiles…进入,对应也
会弹出Preference,在这个里面修改可以对所有的新开标签都有效将dircolor修改为solarized
$ brew install coreutils
coreutils是一个GUN的基础功能包,默认情况下,不会在MacOS中安装,这个包里面包括一些我们接下来会用到的命令,有关于coreutils
具体可参考 https://www.gnu.org/software/coreutils/coreutils.html将dircolors-solarized clone到本地
$ git clone https://github.com/seebi/dircolors-solarized.git
在这个仓库中,有多个dircolor的配置,我使用的是
dircolors.256dark
$ cp -r /path/to/dircolors-solarized ~/.dircolors
将相关的themes复制到dircolors
鉴于我使用的是zsh,需要在~/.zshrc中新增以下内容:export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" alias ls='ls --color=auto' eval `dircolors ~/.dir_colors/dircolors.256dark`
执行
source ~/.zshrc
后,执行以下ls,即可看到目录文件的颜色变化。
以上,done …
附图: