Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 01 Nov 2003 13:52:22 -0800
From:      andi payn <andi_payn@speedymail.org>
To:        SWIT <mark@s-wit.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: color to files
Message-ID:  <1067723542.825.332.camel@verdammt.falcotronic.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 Sat, 2003-11-01 at 06:16, SWIT wrote:
> Is there a way to make the directories to show in color when doing a ls ?
> thanks
> mark

Did you try a "man ls"? It should give you two options: use the -G
parameter, or set the CLICOLOR environment variable. If you don't know
how to do this (or how to make it permanent--as a hint, try adding
"export CLICOLOR=" in ~/.bashrc, if bash is your usual shell), come back
and ask for details.

If this doesn't work for you--or if it works on the text console but not
in X, or if it only works in some X terminal emulators but not in
others--make sure you've read the ls manpage's section on CLICOLOR and
dealt with the termcap issue.

If you don't like the colors, read the LSCOLORS section of the manpage.

You can also install the GNU fileutils port/package
(/usr/ports/sysutils/fileutils), and "gls --color=auto" should colorize
things in that vibrant Stallman style that linux people are used to.
Then you can alias ls to "gls --color=auto" in your .bashrc, etc.




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