Re: how to get color ls display?
the lone gunman hat gesagt: // the lone gunman wrote:
> I recently installed Debian 1.3.1 that I purchased from Linux System
> Labs. I have had several problems, and cannot seem to find the
> answers.
>
> Getting color with ls! I copied my /etc/DIR_COLORS from my old
> slackware system to my new Debian system. In my /etc/profile, I have
> "dircolors -b" run, and then I alias ls="ls --color=auto".
You could also make your own DIR_COLORS-file with:
$ dircolors -p > ~/DIR_COLORS # -p means print-database
> Now, if I un-alias ls (that is, only dircolors is run), then NOTHING
> is in color.
Yep, that's what you told 'ls'. It's a feature, I think.
> But with the alias, regardless of what I do with
> dircolors, I get my lists in color, but not the custom colors I've
> defined in /etc/DIR_COLORS.
Try something like:
-----------------------------------
eval `dircolors /etc/DIR_COLORS`
-----------------------------------
in /etc/profile or in ~/.bash_profile:
------------------------------------
eval `dircolors $HOME/DIR_COLORS`
------------------------------------
if you made your own file like I described above.
Make sure that the environment variable
`LS_COLORS' is set. Check this with:
$ env | grep LS_COLORS
This is descibed in the info page to dircolors "info dircolors".
--
<a href="http://www.einblick.de/">
Frank Barknecht Das Koelner Stadt- und Unimagazin
>-------------< </a>
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: