安装Coreutils使用GNU的ls替换OSX自带的ls
brew install Coreutils gnutls
下载solarized配色文件
brew install wget
wget https://raw.githubusercontent.com/seebi/dircolors-solarized/master/dircolors.256dark
mv dircolors.256dark ~/.dircolors
打开~/.bashrc或 ~/.bash_profile 增加如下
PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
if brew list | grep coreutils > /dev/null ; then
PATH="$(brew --prefix coreutils)/libexec/gnubin:$PATH"
alias ls='ls -F --show-control-chars --color=auto'
eval `gdircolors -b $HOME/.dircolors`
fi
source ~/.bashrc