Mail Archives: djgpp/1996/12/13/08:22:13
Brian P. Mann wrote:
>
> I know that this is probably a stupid (and slightly off-topic) question,
> and has probably been discussed before, but I can't search for it in the
> archives because search words have to be 3 letters or more.:( How in the
> heck do you get the color option on the GNU ls that comes with the
> fileutils package to work in color? I'm sure that it's just something
> stupid that I'm missing, but I didn't have any problem getting it to work
> on my old version of Redhat Linux that I had to set up myself. Hopefully
> someone can help me.
The version of ls that is shipped with DJGPP has color turned off by
default, for some strange reason. To get it to use the color settings
in DJGPP.ENV, use the '--color=auto' argument. Since this is painful to
type every time, I simply use a DOSKEY macro for it.
There should be a way to set the default ls options from the
environment, either with an environment variable or a _ldinit file or
some such. The docs for ls are not very helpful in this respect.
Your final alternative is to get the source for the GNU dirutils from
SimTel and alter ls to make --color=auto the default, then rebuild.
--
John M. Aldrich <fighteer AT cs DOT com>
* Anything that happens, happens.
* Anything that, in happening, causes something else to happen,
causes something else to happen.
* Anything that, in happening, causes itself to happen again, happens
again.
* It doesn't necessarily do it in chronological order, though.
--- Douglas Adams
- Raw text -