Date: Mon, 09 Jan 2012 01:19:20 +0100 From: "Michael Ross" <gmx@ross.cx> To: "Drew Tomlinson" <drew@mykitchentable.net>, Polytropon <freebsd@edvax.de> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: How To Enable ls Color? Message-ID: <op.v7si6iftg7njmm@michael-think> In-Reply-To: <20120109011408.a52e33de.freebsd@edvax.de> References: <4F0A2F01.9020100@mykitchentable.net> <20120109011408.a52e33de.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Am 09.01.2012, 01:14 Uhr, schrieb Polytropon <freebsd@edvax.de>: > 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). > > > setenv TERM vt220-color setenv CLICOLOR for me to work with my ssh client. No LSCOLORS. Michael
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.v7si6iftg7njmm>