打開.bash_profile
打上
alias ls='ls -F'
alias cls='clear'
alias grep='grep --color=auto'
CLICOLOR="xterm-color"
LSCOLORS="gxfxcxdxcxegedabagacad"
export CLICOLOR='true'
export CLICOLOR LSCOLORS
重新登入bash輸入ls就有了
reference : http://osxdaily.com/2012/02/21/add-color-to-the-terminal-in-mac-os-x/
文章標籤
全站熱搜
留言列表