From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14753 invoked from network); 10 Jun 2000 04:39:21 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 10 Jun 2000 04:39:21 -0000 Received: (qmail 20367 invoked by alias); 10 Jun 2000 04:39:10 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11847 Received: (qmail 20360 invoked from network); 10 Jun 2000 04:39:08 -0000 From: "Bart Schaefer" Message-Id: <1000610043846.ZM22914@candle.brasslantern.com> Date: Sat, 10 Jun 2000 04:38:45 +0000 In-Reply-To: <1000610033409.ZM21737@candle.brasslantern.com> Comments: In reply to "Bart Schaefer" "Re: wish for a colored completion system" (Jun 10, 3:34am) References: <200006090724.JAA13449@beta.informatik.hu-berlin.de> <1000610033409.ZM21737@candle.brasslantern.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Re: wish for a colored completion system MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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