Re: ls -G

From: bomberboy (newsbomber_at_pandora.be.invalid)
Date: 10/30/03


Date: Thu, 30 Oct 2003 08:38:14 GMT

ME schreef:

> Is there a way to make the ls command display color by default without
> having to use -G option? I use the console pretty regularly and always
> forget to type that -G.

setenv CLICOLOR

By setting this you won't need to use the -G option.

setenv LSCOLORS ExGxFxdxCxDxDxBxBxExEx

You can customize the colors by setting LSCOLORS, these are my settings.
In X the env. var. TERM should be set to 'xterm-color'.

The setting of these variables might be different depending on your shell.
The above is for csh-like shells, for sh-like shells it's
set CLICOLOR
export CLICOLOR

You probably want to put these things in your .cshr, .profile or something
like that.

-- 
Bruno
"Pascal is not a high-level language."
		-- Steven Feiner