Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Nov 2003 14:58:49 +1030
From:      Malcolm Kay <malcolm.kay@internode.on.net>
To:        "SWIT" <mark@s-wit.net>, <freebsd-questions@freebsd.org>
Subject:   Re: color to files
Message-ID:  <200311021458.49682.malcolm.kay@internode.on.net>
In-Reply-To: <001c01c3a082$afab7d30$0100000a@Biggie>
References:  <200310111243.08231.jason@dictos.com> <035501c3909c$3d1dd8d0$a4b826cb@goo> <001c01c3a082$afab7d30$0100000a@Biggie>

next in thread | previous in thread | raw e-mail | index | archive | help
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 quer=
y 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 'a=
n=20
environment variable'. But you also need the capability to display colour=
s.
The standard non-X virtual terminals (cons25) in FreeBSD have this capabi=
lity.
If you are in X and using xterm then this also has the capability but by=20
default other programs such as ls are not informed of this because the=20
termcap description for terminal type 'xterm' does not declare it. If you=
 set
the environment variable TERM to xterm-color then it will work. Alternati=
vely
add the line:
   XTerm*termName: xterm-color
to your .Xdefaults file.

Malcolm Kay



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311021458.49682.malcolm.kay>