Re: ls colors gone after upgrade
Version 3.13 of ls has the default dircolors compiled in, so the
"eval `dircolors`" line in the profile is redundant as far as 'ls' is
concerned. However, a few other programs (I can't remember which at
the moment) depend on the LS-COLORS variable that dircolors sets and
exports, so it is desirable to leave that line in the profile. :-)
On 18 Feb 1997 William Chow <firstname.lastname@example.org> wrote:
> On 17 Feb 1997, Michael Harnois wrote:
> > >
> > > .bashrc and/or .profile (or .cshrc or .zshrc, whatever):
> > > eval `dircolors`
> > > alias ls 'ls --color=auto'
> > This would be wonderful if it were the correct answer. However, as we
> This IS the correct answer, WTF are you talking about? I've been using a
> similar alias in my startup scripts for months now.
> > discussed just over a month ago on this list, the correct answer is not
> > documented anywhere in the Debian packages. You can read the manpage
> > for ls until hell freezes over and still not get color. The correct
> > answer was provided by Herbert Xu:
> I man ls, one of the options is --color. This should've clued you in.
> Maybe your brain froze over...
> > > Yes indeed. And that means you need this resource line:
> > >
> > > XTerm*customization: -color
> Uh, this will only work in an Xterm. Did you just want it in JUST an
> Xterm? I don't have access to your original email. If this is the case you
> should've specified. Anyway, the above solution will also work on Xterms.
> They read the .bashrc by default (assuming you're running bash...). I also
> assume you can export the aliases (although I've never done so...)
> Stop confusing the populace.
> TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
> debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com