From: vapnik spaknik <vapniks@yahoo.com>
To: "Marc Cornellà" <marc.cornella@live.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: detect if command has a completion function
Date: Sat, 29 Aug 2020 17:38:16 +0000 (UTC) [thread overview]
Message-ID: <382125526.162422.1598722696563@mail.yahoo.com> (raw)
In-Reply-To: <AM6PR02MB56389D8F9832FA6C58D8EF6E84530@AM6PR02MB5638.eurprd02.prod.outlook.com>
[-- Attachment #1: Type: text/plain, Size: 334 bytes --]
>On Saturday, August 29, 2020, 06:21:21 PM GMT+1, Marc Cornellà <marc.cornella@live.com> wrote:
>
>You can use the `$_comps` array which controls which completion
>function is assigned to a command.
>For example, the completion function for `ls` is `_ls`:
>
> $ echo $_comps[ls]
>
> _ls
Perfect, thankyou!
[-- Attachment #2: Type: text/html, Size: 445 bytes --]
next prev parent reply other threads:[~2020-08-29 17:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <301108111.164161.1598719628682.ref@mail.yahoo.com>
2020-08-29 16:47 ` vapnik spaknik
2020-08-29 17:21 ` Marc Cornellà
[not found] ` <AM6PR02MB56389D8F9832FA6C58D8EF6E84530@AM6PR02MB5638.eurprd02.prod.outlook.com>
2020-08-29 17:38 ` vapnik spaknik [this message]
2020-08-29 18:33 ` Bart Schaefer
2020-08-29 19:27 ` Bart Schaefer
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=382125526.162422.1598722696563@mail.yahoo.com \
--to=vapniks@yahoo.com \
--cc=marc.cornella@live.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).