Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: wish for a colored completion system
- X-seq: zsh-users 3138
- From: Fletch <fletch@xxxxxxxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: wish for a colored completion system
- Date: 08 Jun 2000 14:44:18 -0400
- Cc: zsh-users@xxxxxxxxxxxxxx
- In-reply-to: "Bart Schaefer"'s message of "Thu, 8 Jun 2000 17:37:40 +0000"
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- Organization: Very Little
- References: <200006081041.MAA20210@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20000608144407.A2039@xxxxxxxxxxxxxxxxxxxxxxxxxx> <20000608163130.A2637@xxxxxxxxxxxxxxxxxxxxxxxxxx> <200006081449.QAA21570@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <no.id> <20000608165051.B3286@xxxxxxxxxxxxxxxxx> <20000608171137.C2997@xxxxxxxxxxxxxxxxxxxxxxxxxx> <20000608173254.D2997@xxxxxxxxxxxxxxxxxxxxxxxxxx> <0FVU005MNF7Q6N@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1000608173740.ZM16747@xxxxxxxxxxxxxxxxxxxxxxx>
- Sender: fletch@xxxxxxxxxxxx
>>>>> "Bart" == Bart Schaefer <schaefer@xxxxxxxxxxxxxxxxxxxxxxx> writes:
[...]
Bart> Specifically, type the thing you want to complete after,
Bart> then hit <C-x h>.
Bart> For some reason I was thinking the tags only showed up in
Bart> the verbose output, but it's the _styles_ that you can get
Bart> with <ESC 2 C-x h>.
OK, I'm trying to colourize hostnames for ssh. So I type:
ssh l<Cx-h>
And I get:
tags in context :completion::complete:ssh::
argument-1 options (_arguments _ssh _ssh)
tags in context :completion::complete:ssh:argument-1:
hosts users (_alternative _ssh _ssh)
hosts (_hosts _combination _ssh_hosts _alternative _ssh _ssh)
users (_users _combination _ssh_users _alternative _ssh _ssh)
What tag should I use? I've tried the following with no
success:
zstyle ':completion:*:*:ssh:*:hosts' list-colors '=lemur*=01;32'
zstyle ':completion::complete:ssh:*:hosts' list-colors '=lemur*=01;32'
zstyle '*:hosts' list-colors '=lemur*=01;32'
If I set something in ':completion:*' list-colors it works,
but I'm betting I'm just not understanding how styles are being
matched.
--
Fletch | "If you find my answers frightening, __`'/|
fletch@xxxxxxxxxxxx | Vincent, you should cease askin' \ o.O'
678 443-6239(w) | scary questions." -- Jules =(___)=
| U
Messages sorted by:
Reverse Date,
Date,
Thread,
Author