Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Apr 2002 17:59:56 +0100
From:      Daniel Bye <dan@slightlystrange.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: ls with the -G option
Message-ID:  <20020426165956.GD14130@icarus.slightlystrange.org>
In-Reply-To: <GV6PK3$501D6328F3A2A50E2E46B728E48A99EE@laposte.net>
References:  <GV6PK3$501D6328F3A2A50E2E46B728E48A99EE@laposte.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 26, 2002 at 06:52:51PM +0200, e.cerejo@laposte.net wrote:
> Is it possible to make the ls command run with the -G option
> every time you run ls or ls with any other option.  I just
> want it to show color all the time and to be able to add more
> options to it, for example ls -a I would like it to give the
> results in color without having to add the -G option all the
> time.  Thanks
> 

Hi,

This is an excerpt from the man page for ls:

 -G      Enable colorized output.  This option is equivalent to defining
             CLICOLOR in the environment.  (See below).


So, set CLICOLOR=true in your shell startup file and it should do
what you want it to do.

Dan

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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