thedark Second Lieutenant
Joined: 30 Jul 2005
Posts: 1074
|
Posted: Sun Jul 31, 2005 8:03 am Post subject: FreeBSD : How to enable colorized ls output? |
|
|
1) Simple use following alias
alias ls=’ls –G’
2) Store above alias to ~/.bash_profile
3) You might need to change TERM variable to xterm-color. Use command:
export TERM=xterm-color
or
export TERM=xterm
Put any of above command in your ~/.bash_profile.
3) To customize color you need modify LSCOLORS variable and other stuff. Here is script to achieve this.
4) Call this script from your /etc/profile |
|