On 1/8/2012 6:14 PM, Polytropon wrote:
On Sun, 08 Jan 2012 16:04:17 -0800, Drew Tomlinson wrote:
I've installed 9.0-RC3 amd64.  I'm trying to enable color output for
ls.  I've issued the basic 'ls -Gla' but output is not colored.  Yet if
I can get colorized output by providing color codes (echo
^[[34mhello^[[37m produces a blue "hello") at the command line so I know
my terminal is capable.

Is there some other secret?  This is a new install and I'm just trying
to set things up.
Put

        setenv LSCOLORS ExGxdxdxCxDxDxBxBxegeg

in the csh's initialisation file (typically ~/.cshrc
for local use, /etc/csh.cshrc for global effect)
and maybe setup an alias:

        alias ls 'ls -FG'
        alias ll 'ls -laFG'

However, ls should provide colored output even
if you don't set the $LSCOLORS variable. It
should work with the default terminal emulation
(cons25 or cons25l1).


From here: http://www.puresimplicity.net/~hemi/freebsd/misc.html

CLICOLOR="YES";    export CLICOLOR
LSCOLORS="ExGxFxdxCxDxDxhbadExEx";    export LSCOLORS

I last updated that page a while ago...But it still seems to be working for me. 
:) You shouldn't really have to muck around with term type or anything...

Cheers,

Josh

--
Josh Tolbert
h...@puresimplicity.net  ||  http://www.puresimplicity.net/~hemi/

Security is mostly a superstition. It does not exist in nature, nor
do the children of men as a whole experience it. Avoiding danger
is no safer in the long run than outright exposure. Life is either
a daring adventure, or nothing.
    -- Helen Keller

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to