打開.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/

arrow
arrow
    文章標籤
    macOS ls bash
    全站熱搜

    w180112 發表在 痞客邦 留言(0) 人氣()