delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/11/13:43:08

X-Spam-Check-By: sourceware.org
X-BigFish: V
MIME-Version: 1.0
Subject: RE: Problems with 'dircolors'
Date: Wed, 11 Oct 2006 13:41:53 -0400
Message-ID: <CA77FC40E7A2D24695CF3C790BB73185886236@DOVMS10001.goss.gossinternational.com>
From: "Long, Phillip GOSS" <Phillip DOT Long AT gossinternational DOT com>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k9BHh5vR028944

Hi, Ricardo!

`dircolors' comes with its own built-in colorization scheme; that's what
U get when U type `dircolors --print-database.'  If U want to
_customize_ your colorization scheme, dump the database to a file, like
this:
	dircolors --print-database > dircolors.db
make whatever changes U want, and in your `.bash_profile' file (if U're
using `bash' as your shell), enter this line:
	eval $(dircolors -b /path/to/your/file/dircolors.db) 
If U're using `csh,' it changes slightly (see `dircolors --help' for
explanation):
	eval $(dircolors -c /path/to/your/file/dircolors.db) 
and it has to be put into your `.tcshrc' file.

Now when U open a window, `dircolors' generates a command to set the
environment variable LS_COLORS.  This is executed in a subprocess (it's
inside a `$(...)' construct), and its output is returned as a string
passed to `eval,' which _runs_ that command (which sets the LS_COLORS
environment variable) in the context of the current process (sort of
like using `source' or `.').

HTH!

					Phil the Old Coder




-----Original Message-----
From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf
Of Ricardo Cardoso
Sent: Wednesday, October 11, 2006 12:47 PM
To: cygwin AT cygwin DOT com
Subject: Problems with 'dircolors'

Hi all,

Can someone explain me how dircolors work?
I don't understand the concept of the environment variable (in this case
- i think - LS_COLORS) and when i try 'set LS_COLORS --COLOR' it does
nothing at all.
I've tried to create a file (something.txt) with the options from '
dircolors --print-database' and then give all the values to LS_COLORS
but I get error messages like:

token is missing in line 7

and other stuff like it.

Thx,

stuccio

--
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/




--
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