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

Re: wish for a colored completion system



On Jun 10,  3:34am, Bart Schaefer wrote:
} Subject: Re: wish for a colored completion system
}
} I asked why
} 
}     zstyle ':completion:*:ssh:*' list-colors '=a*=31'
} 
} doesn't work.

The following does something more like I would expect, but I won't commit
it because I'm sure I've missed something.

Index: Completion/Core/_setup
===================================================================
@@ -4,7 +4,7 @@
 
 if zstyle -a ":completion:${curcontext}:$1" list-colors val; then
   zmodload -i zsh/complist
-  if [[ "$1" = default ]]; then
+  if [[ "$1" = (default|(|*-)argument-*) ]]; then
     ZLS_COLORS="${(j.:.)${(@)val:gs/:/\\\:}}"
   else
     eval "ZLS_COLORS=\"(${1})\${(j.:(${1}).)\${(@)val:gs/:/\\\:}}:\${ZLS_COLORS}\""

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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