colorful ‘ls’ command in mac terminal

看到Ubuntu的command line上的 ls 都很繽紛

很容易就可以看出資料夾與檔案的差別

就不用看得眼花撩亂

於是google一下發現有一篇超棒!

裡面還有一個網站是可以手選顏色在自動產生指令去修改顏色

先到 ~

ls -al

找到.bash_profile檔

vim /.bash_profile

在最下面加入

export CLICOLOR='true'

export LSCOLORS="gxfxcxdxcxegedabagacad"

畫面就票釀囉

 

分享一下現在我的bash_profile:

RongSonHo_—_vim____bash_profile_—_80×24

參考:

  1. mac 讓終端機ls有顏色: http://sodahau.logdown.com/posts/18879-mac-ls

作者

RongSon

Graduate Student of CCU COMM Game Development, Network Communication, macOS/Ubuntu/Android, Arduino/Raspberry Pi/Intel Edison, Java/Python/C/C++

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *