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

Re: [Sheflug] Simple question... simple answer?



At 21:08 28/01/2004 +0000, Rob Andrews wrote:
On Wed, 2004-01-28 at 21:01, Steve Tickle wrote:
> Could someone please tell me if and how I can set 'ls' to display in color
> by default? (ie. equiv. to the command line ls --color=always)
> I'm using ls v4.1

Consult your .bashrc & .bash_profile.

Usually you'll find either "alias ls='ls --color'" or "export
LSOPTS=--color=always". Take your pick.
Thanks Rob (and Chris J) for your replies. I've uncommented the lines
export LS_OPTIONS='--color=auto'
eval `dircolors`
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'

in the .bashrc files for my own account and for root but I only get the effect I want if I'm logged in as root.
Any ideas?


--
Steve
___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

GNU the choice of a complete generation.