This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Colors in Cygwin window


On Sun, 28 Jul 2002, John Morrison wrote:

> > From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]