Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Completion/User/_cvs again.
- X-seq: zsh-workers 7709
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Tanaka Akira <akr@xxxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: Completion/User/_cvs again.
- Date: Wed, 8 Sep 1999 00:46:32 +0000
- In-reply-to: <rsq4sh62utd.fsf@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <199909070717.JAA03524@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <rsqg10r2e2a.fsf@xxxxxxxxxxxxxxxxx> <990907222631.ZM11028@xxxxxxxxxxxxxxxxxxxxxxx> <rsq4sh62utd.fsf@xxxxxxxxxxxxxxxxx>
On Sep 8, 7:58am, Tanaka Akira wrote:
> Subject: Re: PATCH: Completion/User/_cvs again.
> In article <990907222631.ZM11028@xxxxxxxxxxxxxxxxxxxxxxx>,
> "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx> writes:
>
> > maybe a bit less readable ...
>
> + _cvs_"${${(k)cmds[(R)* $words[1] *]}:-${words[1]:#*~(${(@kj:|:)~cmds})}}"
I think we've just gone from "a bit" to "a lot". How about:
Index: Completion/User/_cvs
===================================================================
@@ -35,7 +35,7 @@
if (( CURRENT == 1 )); then
compadd "$@" ${(k)cmds} || compadd "$@" ${(kv)=cmds}
else
- _cvs_"${${(k)cmds[(R)* $words[1] *]}:-${words[1]:#*~(${(@kj:|:)~cmds})}}"
+ _cvs_"${${(k)cmds[(R)* $words[1] *]}:-${(k)cmds[(i)$words[1]]}}"
fi
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author