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:

  % 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!

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