X-Spam-Check-By: sourceware.org X-BigFish: V Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: Problems with 'dircolors' Date: Wed, 11 Oct 2006 13:41:53 -0400 Message-ID: From: "Long, Phillip GOSS" To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit 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/