4/07/2009

how to set freeBSD ls color

it's just the normal note.
not so big deal.
1. frist install gnuls:
cd /usr/ports/misc/gnuls
make all install clean
2. vi ~/.tcshrc and add the following line
alias ls 'gnuls --color=auto --show-control-chars'
3. login again and finish.

2 則留言:

國父 說...

映象中 BSD 版 ls 就有參數有顏色了。-G 的樣子。手邊無 BSD 無法測試

spw 說...

恩恩 我後來發現了