delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/11/16:47:31

X-Spam-Check-By: sourceware.org
Message-ID: <895c532b0610111347j137976b5j4e0c59363dec16c8@mail.gmail.com>
Date: Wed, 11 Oct 2006 21:47:19 +0100
From: "Ricardo Cardoso" <stuccio AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Problems with 'dircolors'
MIME-Version: 1.0
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

Thanx in advance for the provided solution Philip, but I just can't
get it to work.
 You said:

`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



I understand a bit more about the environment variable and I've done
exactly like you said.
I have a bash shell so I edited .bash_profile, usin VIM (it's awesome)
and then exited, entered cygwin again, startx, ls ..  nothing...
Everythings the same...

Any more solutions or ideas, anyone...?

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/

- Raw text -


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