[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Enableing color LS on consoke sessions



On Mon 26 Mar 01, 12:37 AM, onderste@wanadoo.nl said: 
> On Sun, Mar 25, 2001 at 01:02:05PM -0800, Peter Jay Salzman wrote:
> 
> > alias lard='ls -Flard --color=auto'
> > 
> > the "auto" keyword is nice cause it doesn't frick up your listing when
> > piping to more or less.  i also use my own color scheme
> 
> it's nice indeed, except when doing e.g. a ls -la > listing.txt,
> therefore i prefer --color=tty
 
why is that bad?  i get exactly what i should get -- no color codes or wierd
stufff.

"auto" turns on ls colors only when ls is attached to a terminal.  it knows
when it's attached to a pipe (and i presume a redirect?)

pete



Reply to: