color to files
Malcolm Kay
malcolm.kay at internode.on.net
Sat Nov 1 20:28:55 PST 2003
On Sun, 2 Nov 2003 00:46, SWIT wrote:
> Is there a way to make the directories to show in color when doing a ls ?
> thanks
Firstly; don't use the reply button for a new question. It puts your query in
a thread on another question and might therefore be missed. In this case
it appears in the thread:
"Beep when tab cannot incomplete".
As others have noted you need the '-G option with ls' or 'an alias' or 'an
environment variable'. But you also need the capability to display colours.
The standard non-X virtual terminals (cons25) in FreeBSD have this capability.
If you are in X and using xterm then this also has the capability but by
default other programs such as ls are not informed of this because the
termcap description for terminal type 'xterm' does not declare it. If you set
the environment variable TERM to xterm-color then it will work. Alternatively
add the line:
XTerm*termName: xterm-color
to your .Xdefaults file.
Malcolm Kay
More information about the freebsd-questions
mailing list