From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: color ls Date: Thu, 12 Dec 1996 19:11:05 -0800 Organization: Three pounds of chaos and a pinch of salt Lines: 34 Message-ID: <32B0C927.21AF@cs.com> References: <3 DOT 0 DOT 32 DOT 19961211143635 DOT 00a00190 AT 199 DOT 179 DOT 162 DOT 84> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp105.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "Brian P. Mann" DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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 * 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