From: Matthew Martin <phy1729@gmail.com>
To: zsh-users@zsh.org
Subject: Re: Get the name of the completion function for a given command
Date: Sat, 22 Aug 2020 11:56:03 -0500 [thread overview]
Message-ID: <20200822165603.GA66548@CptOrmolo.darkstar> (raw)
In-Reply-To: <CAE9z9A2aGv0Cb+shfsqn1M7fkBRASvEe8fuC+F0BTFUvmsSihQ@mail.gmail.com>
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
prev parent reply other threads:[~2020-08-22 16:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-22 16:49 Rudi C
2020-08-22 16:56 ` Matthew Martin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200822165603.GA66548@CptOrmolo.darkstar \
--to=phy1729@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).