Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: detect if command has a completion function
- X-seq: zsh-users 26046
- From: vapnik spaknik <vapniks@xxxxxxxxx>
- To: Marc Cornellà <marc.cornella@xxxxxxxx>
- Subject: Re: detect if command has a completion function
- Date: Sat, 29 Aug 2020 17:38:16 +0000 (UTC)
- Archived-at: <https://zsh.org/users/26046>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-08/382125526.162422.1598722696563%40mail.yahoo.com>
- Authentication-results: zsh.org; iprev=pass (sonic311-24.consmr.mail.gq1.yahoo.com) smtp.remote-ip=98.137.65.205; dkim=pass header.d=yahoo.com header.s=s2048 header.a=rsa-sha256; dmarc=skipped; arc=none
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1598722699; bh=Z3MWKaD8QGW5h+nfoLgCBHoZJAivfcTQpals3qoJMFY=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject; b=WxdoFrXs58vu3wZZK4XjD6Wr7AyH9fRozgfznfdIf50HoWDjCfLxWLaA2bbRvQq9bsDZlDD+H16pdimijzJafIIh5hYmvch20qJ7NyB4qFNTvsanVbxb2+pbJZcWvAyHt0UQbV5itLeEGlKMC5aXSDB/olff55yq/ZgvtcBNntjqNCoyoeHDd72BEUKpGycXNYaYqzQpo1euw8hUpN7OEmzU2dZSUM903jk73qVxAej5wZkhuf+UZLDAnsb5eEPXE+1A60A4mLX9WJ1Mz3O8fIGj58tSmtA3b9QecHuptsJNQOCcJoSRYjjY3dnmOtdRqOIk1QktRzJAZDGLqmfzWg==
- In-reply-to: <AM6PR02MB56389D8F9832FA6C58D8EF6E84530@AM6PR02MB5638.eurprd02.prod.outlook.com>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-users>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-users.zsh.org>
- List-owner: <mailto:zsh-users-request@zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-users>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-users>
- References: <301108111.164161.1598719628682.ref@mail.yahoo.com> <301108111.164161.1598719628682@mail.yahoo.com> <AM6PR02MB56389D8F9832FA6C58D8EF6E84530@AM6PR02MB5638.eurprd02.prod.outlook.com>
- Sender: zsh-users-request@xxxxxxx
>On Saturday, August 29, 2020, 06:21:21 PM GMT+1, Marc Cornellà <marc.cornella@xxxxxxxx> 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!
Messages sorted by:
Reverse Date,
Date,
Thread,
Author