delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/09/23:34:17

X-Spam-Check-By: sourceware.org
From: ericblake AT comcast DOT net (Eric Blake)
To: cygwin AT cygwin DOT com
Subject: Re: Problems after upgrading to 1.5.19-4
Date: Fri, 10 Mar 2006 04:34:03 +0000
Message-Id: <031020060434.155.441101BB0006EB230000009B22070009530A050E040D0C079D0A@comcast.net>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

> Okay, now I'm trying to figure out how dircolors works.  I've modified 
> /etc/LS_COLORS, then have done things like
> 
> dircolors -b /etc/LS_COLORS > MyColors
> . ./MyColors

That's one way.  Another is the method used by /etc/profile:

eval "`dircolors -b /path/to/database`"

> 
> but it doesn't affect the display.  The docs on dircolors mention a 
> compiled-in database but do not explain how to update it.

The only way to change the compiled-in database is to recompile
it (it's compiled in, after all).  However, /etc/defaults/etc/DIR_COLORS
contains the compiled database (also available by running
'dircolors -p').  Furthermore, the compiled-in database is
used only when you don't use a filename; so your above usage
was overriding the compiled-in database with your own
color designation database (which sounds like what you wanted).

As to what is not being affected on the display, are you sure
you have defined colors for all of the categories supported by
dircolors?  Look at the contents of 'dircolors -p' for an example
of all the categories that can be set; if you omit a category
in your file, then 'ls --color' falls back on a default color for that
category.

And by the way, other than the fact that I distribute
/etc/defaults/etc/DIR_COLORS as a snapshot of the
builtin database, none of the rest of this email is
cygwin-specific.

-- 
Eric Blake

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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