zsh-users
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-users@sunsite.dk
Subject: Re: Odd behavior with ZLS_COLORS
Date: Thu, 15 Mar 2001 10:46:25 +0100 (MET)	[thread overview]
Message-ID: <200103150946.KAA23783@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: John Cooper's message of 14 Mar 2001 15:53:46 +0000


John Cooper wrote:

> [ZSH_VERSION is 4.0.1-pre-2]
> 
> I have `zmodload zsh/complist' in my .zshrc file, but after attempting
> completion, my ZLS_COLORS variable seems to get cleared:
> 
>   % ZLS_COLORS=$LS_COLORS
>   % echo $ZLS_COLORS
>   di=1;31:ex=1;32:*.dll=1;32:*.java=1;33:*.c=1;33:*.html=1;33:*.htm=1;33:*.el=1;35:*.zip=1;35:*.gz=1;35:*.tar=1;35:*.jar=1;35:*.cab=1;35
>   % ls apacheTAB
>   ApacheJServ-1.1.2/  apache_1.3.14/    
>   % echo $ZLS_COLORS
> 
>   %
> 
> Oddly, the coloring of file names is identical to what I get with GNU `ls' with
> the sole exception that zsh completion gives me directories in blue, but ls
> shows them in red!

The obvious explanation is that somehow I got the builtin default
(hard-coded into complist.c -- ZLS_COLORS is set (i.e., in this case,
cleared) from the list-color style before the code that uses
$ZLS_COLORS) wrong.  And I love separating single words from the rest
of the sentence by long and nested parentheses.

Bye
 Sven

Index: Src/Zle/complist.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/complist.c,v
retrieving revision 1.39
diff -u -r1.39 complist.c
--- Src/Zle/complist.c	2001/01/18 14:41:40	1.39
+++ Src/Zle/complist.c	2001/03/15 09:42:15
@@ -76,7 +76,7 @@
 /* Default values. */
 
 static char *defcols[] = {
-    "0", "0", "1;34", "1;36", "33", "1;35", "1;33", "1;33", "1;32", NULL,
+    "0", "0", "1;31", "1;36", "33", "1;35", "1;33", "1;33", "1;32", NULL,
     "\033[", "m", NULL, "0", "0", "7", "0", "0"
 };
 

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~2001-03-15  9:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-15  9:46 Sven Wischnowsky [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-03-14 15:53 John Cooper
2001-03-14 15:58 ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200103150946.KAA23783@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).