delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/28/11:36:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Sun, 28 Jul 2002 11:36:21 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: RE: Colors in Cygwin window
In-Reply-To: <NCEBJJFMCAOKNNABBFIMIECMCEAA.john.r.morrison@ntlworld.com>
Message-ID: <Pine.GSO.4.44.0207281126020.18003-100000@slinky.cs.nyu.edu>
MIME-Version: 1.0

On Sun, 28 Jul 2002, John Morrison wrote:

> > From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf
> > Hallo John,
>
> Morning ;)
>
> > Am Sonntag, 28. Juli 2002 um 12:31 schriebst du:
> >
> > >> Most interesting is this line:
> > >> eval `dircolors -b /etc/DIR_COLORS`
> >
> > >> where the file DIR_COLORS is a default one from the Mandrake
> > >> dist (Cygwin version attached;)
> >
> > > Most files come out a mucky yellow colour!  Don't know why :'(
> >
> > $ ls -l
> > will tell you that they are
> > -rwxrwxrwx    1 gerrit   Domänen-     1017 Jul 24 23:34 reporter.pl*
> > ^^^^^^^^^^^ all executables are                      ^^^^^^^yellow.
> >
> > So, if you set the permissions correct, e.g. to archives:
> > -r--r--r--
> > archives will be red,
> > .c files:
> > -rw-rw-rw-
> > will be cyan and so on.
>
> So it doesn't just go on file extension; it uses permissions too...
>
> J.

John,
Try running 'dircolors --print-database'.  This will print out all the
default color assignments, but also the comments that explain what each
of them means.  You'll see that it uses both the permissions and the
extensions (as you instruct it).
As for ALL the files being yellow, you're probably doing 'ls /bin' or some
such.  If not, see if you somehow have an 'exec' option set for the mount
in that directory.  If you do, then all files in it will be treated as
executables, producing the "mucky yellow colour".  :-)  Speaking of which,
you can change that by editing /etc/DIR_COLORS, and setting, say, EXEC to
a respectable green.  Or you can remount the directory without the -x
flag.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

It took the computational power of three Commodore 64s to fly to the moon.
It takes a 486 to run Windows 95.  Something is wrong here. -- SC sig file


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019