Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Get the name of the completion function for a given command
On Sat, Aug 22, 2020 at 09:19:58PM +0430, Rudi C wrote:
> I want to get the completion function for a given command. I know I can
> assign such a completion function like so:
>
> `compdef some_completion_function my_command`
>
> But I want the reverse:
>
> `compdef-get my_command #> some_completion`
% print $_comps[apt-get]
_apt
% print $^fpath/$_comps[apt-get](N)
/home/phy1729/zsh/Completion/Debian/Command/_apt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author