1. 安装brew
2. 安装coreutils
brew install coreutils
3. 下载dircolors-solarized并放在~/colors目录下
git clone
4. edit ~/.bash_profile
export PATH=”/usr/local/opt/coreutils/libexec/gnubin:$PATH”
export 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 `dircolors ~/colors/dircolors-solarized/dircolors.256dark`
fi
if [ -f $(brew –prefix)/etc/bash_completion ]; then
. $(brew –prefix)/etc/bash_completion
fi
转自鸿鹄同学
阅读(1280) | 评论(0) | 转发(0) |