LS_COLORS has no effect

View: New views
4 Messages — Rating Filter:   Alert me  

LS_COLORS has no effect

by KClaisse :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have tried just about everything to get the LS_COLORS to work but they just don't seem to have any effect.
I have added an export script to my .bashrc that uses dircolors, and even echoing $LS_COLORS confirms the correct values, but if I ls, the colors are all wrong.

Here's my DIR_COLORS:
http://pastebin.ca/353535


and the output of "ECHO $LS_COLORS"
http://pastebin.ca/353533

Any help is greatly appreciated.

Re: LS_COLORS has no effect

by Thorsten Kampe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* KClaisse (Tue, 13 Feb 2007 04:43:22 -0800 (PST))
>
> I have tried just about everything to get the LS_COLORS to work but they just
> don't seem to have any effect.

eval $(dircolors -b ~/.dir_colors)


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Re: LS_COLORS has no effect

by KClaisse :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thorsten Kampe wrote:
* KClaisse (Tue, 13 Feb 2007 04:43:22 -0800 (PST))
>
> I have tried just about everything to get the LS_COLORS to work but they just
> don't seem to have any effect.

eval $(dircolors -b ~/.dir_colors)


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
That didn't either. I have something very similar in my .bashrc file too.
It seems that LS isn't using the LS_COLORS variable.

Re: LS_COLORS has no effect

by Corinna Vinschen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Feb 14 00:50, KClaisse wrote:
> Thorsten Kampe wrote:
> > * KClaisse (Tue, 13 Feb 2007 04:43:22 -0800 (PST))
> >> I have tried just about everything to get the LS_COLORS to work but they
> >> just
> >> don't seem to have any effect.

I'm using

  $ echo $LS_COLORS
  ex=0;31:ln=0;32:di=0;34
  $ alias ls
  ls --color=tty

and it works fine for me.


Corinna

--
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/