改变 Ubuntu 终端颜色

2014-00-00


  1. Grab a copy of the dircolours file we need

    wget https://raw.github.com/seebi/dircolors-solarized/master/dircolors.256dark -O ~/.dircolors
    
  2. Add the following to your .(bash|zsh)rc to autoload them:

    if [ -x /usr/bin/dircolors ]; then
        test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
    fi