To display colors un filenames, to have to type ls --color=auto.
To have it enabled just when typing ls, you have to add the line :
        alias ls="ls --color=auto" 
in your $HOME/.tcshrc or in any script executed when tcsh starts.

Elvis Chen wrote :
> hi everyone,
> 
> How does one enable ls to display file names in colour depending on the
> file extension?  
> 
> It used to be working under Mandrake 6.1, but once I installed Mandrake 7,
> it stops working.  The shell I'm using is tcsh.  HOWEVER, if I use bash,
> the ls-listing are displayed in colour.
> 
> Looks to me that there are a lot of details in Mandrake 7 are NOT being
> taken care of.  It is too bad that I need the new kernel or else I'll
> switch back to 6.1
> 
> thanx,
> 
> Elvis

Reply via email to