delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/16/00:16:29

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
To: cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Soren A <soren_andersen AT fastmail DOT fm>
Subject: Re: New cygwin & .dir_colors
Date: Wed, 16 Oct 2002 04:15:29 +0000 (UTC)
Organization: Occasionally Sporadically
Lines: 53
Message-ID: <Xns92A92C2D36C5soren1Gmane@80.91.224.249>
References: <001c01c273af$bee42910$6601a8c0 AT blackie>
NNTP-Posting-Host: ny-kenton2a-572.buf.adelphia.net
X-Trace: main.gmane.org 1034741729 16074 24.51.94.60 (16 Oct 2002 04:15:29 GMT)
X-Complaints-To: usenet AT main DOT gmane DOT org
NNTP-Posting-Date: Wed, 16 Oct 2002 04:15:29 +0000 (UTC)
User-Agent: Xnews/L5
X-Archive: encrypt

"Jelks Cabaniss" <jelks AT jelks DOT nu> wrote around 14 Oct 2002 
news:001c01c273af$bee42910$6601a8c0 AT blackie:

> Just installed the new cygwin and the old directory listing colors are
> no longer recognized.  Now it only distinguishes between normal files
> (red), directories (dark blue), and links (cyan).  It used to
> distinguish between the file types too, i.e., .zip, .c, .txt, .jpg were
> all in different colors.  Why does the new cygwin not allow this, or
> better, how do I enable it with the new cygwin?

I do not know for a fact anything about "old vs. new". In what I am going 
to suggest, I am making no claims whatsoever about something changing or 
not changing or being broken or fixed.

Step 0: what does `echo $TERM' show on your system? AFAIK it should be 
"cygwin".

Step 1: generate another colors file:

   dircolors -p >~/default_dircolors

Step 2: open in a text editor (`vim ~/default_dircolors')

Step 3: look near the top of the file for the TERM listings. You'll know 
what i mean when you see it. many, many lines each beginning with "TERM" 
and followed by a unique name.

   *** IS "cygwin" one of those entries ??? ***

If NOT,
Step 4: add an entry for cygwin: "TERM cygwin"
Step 5: copy-n-paste all your customizations from the old .dircolors file 
into the new one.
-------------------
If SO: keep on askin' about this because I have no idea what the trouble 
might be. ;-P
-------------------
Final step: do `eval dircolors ~/[your colors file name here]'. The try it 
out and see if you have what you want.

The dircolors command in Cygwin should, IMHO, output its database with a
line containing 'TERM cygwin', and the version I use doesn't do that. I
recognize your description of the colors as the default cygwin
`ls --colors' output, that's what it does when no LS_COLORS has been
provided. 

   HTH,
     Soren A

-- 
Just say NO to YAHAAPs!
(http://groups.google.com/groups?&selm=
Xns92991EB1F396ngrATT586ID%40204.127.36.1)



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

- Raw text -


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