Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Odd behavior with ZLS_COLORS

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

  % echo $ZLS_COLORS
  % 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!

I've discovered (from the docs) that the following zstyle incantation causes
the zsh completions to exactly match my ls completions (including red
directories), but I thought I'd mention the red/blue strangeness anyway, as I'm
curious if there's an obvious explanation.

  zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}

    --- John

Messages sorted by: Reverse Date, Date, Thread, Author