Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Equivalent of compctl -L with "new" completion system?
- X-seq: zsh-users 10530
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: "Zsh Users" <zsh-users@xxxxxxxxxx>
- Subject: Re: Equivalent of compctl -L with "new" completion system?
- Date: Tue, 18 Jul 2006 20:30:08 +0100
- In-reply-to: Message from "John Reese" <john.reese@xxxxxxxxx> of "Tue, 18 Jul 2006 11:32:54 PDT." <488030720607181132l372c5613y91108869dac9760b@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
"John Reese" wrote:
> Is there a command or function that will (a) list all commands that
> have custom (zshcompsys) completions and indicate what they are, and
> (b) do the same, but only for a given command, like
>
> (a) compctl -L
> and
> (b) compctl -L svn
You can do
print -l ${(k)_comps}
to show the contexts for which there are completions. This includes
both command names and special contexts such as
-value-,DISPLAY,-default- (the value of the DISPLAY environment variable).
print ${_comps[svn]}
will show you if a given command is handled and if so by what function.
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author