items2 solaried配置

  1. 将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,在这个里面修改可以对所有的新开标签都有效

  2. 将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 …

附图:
这里写图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值