color ls 彩色世界

cd /usr/ports/misc/gnuls
make all install clean
再用gnuls取代ls,
像我用tcsh,
所以在~/.tcshrc加入

alias ls ‘gnuls –color=auto –show-control-chars’

如果是使用bash者,則可修改/etc/profile 或是 $HOME/.profile,加入:
alias ls="gnuls –color=auto –show-control-chars"

在安裝好新套件之後,在環境變數中的路徑中是找不到剛安裝好的執行檔,通常大多數的做法是登出後再登入,不過其實可以不用這麼煩麻,有個指令可以重新讀取路徑喲!
shell > rehash

One thought on “color ls 彩色世界

  1. I think that what you wrote made a bunch of sense.
    However, think about this, suppose you were to write a
    killer headline? I am not suggesting your content is not good.
    , however what if you added a headline that makes people want more?
    I mean color ls 彩色世界

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *