Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: wish for a colored completion system
- X-seq: zsh-workers 11847
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: wish for a colored completion system
- Date: Sat, 10 Jun 2000 04:38:45 +0000
- In-reply-to: <1000610033409.ZM21737@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <200006090724.JAA13449@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1000610033409.ZM21737@xxxxxxxxxxxxxxxxxxxxxxx>
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