zsh-users
 help / color / mirror / code / Atom feed
From: "Daniel Shahaf" <d.s@daniel.shahaf.name>
To: zsh-users@zsh.org
Subject: Re: What is the _services array?
Date: Fri, 27 May 2022 12:45:42 +0000	[thread overview]
Message-ID: <423ac4eb-9075-4ba2-bc26-51402681619b@www.fastmail.com> (raw)
In-Reply-To: <1159735190.430174.1653645175258@mail2.virginmedia.com>

Peter Stephenson wrote on Fri, 27 May 2022 09:52 +00:00:
>> On 27 May 2022 at 10:09 Zach Riggle <zachriggle@gmail.com> wrote:
>> I recently found the _services array by playing around with "typeset -H"
>> and there's some neat stuff in here, I'm just not sure what it's for or how
>> to make use of it.
>> 
>> Any ideas?
>
> This is the backend DB for the feature described in the zshcompsys manual
> in the paragraph that starts
>
> "Each  name may also be of the form `cmd=service'.  "
>
> You should be able to be configure it by the means noted there.

It's not documented, though, which means it's liable to change
incompatibly without notice.  If that's not the case, then we should
document that function :)

That also goes for ${_comps}, which maps command word basenames to their
completion functions (e.g., [[ ${_comps[svn]} == _subversion ]]).

Cheers,

Daniel


  reply	other threads:[~2022-05-27 12:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-27  9:09 Zach Riggle
2022-05-27  9:52 ` Peter Stephenson
2022-05-27 12:45   ` Daniel Shahaf [this message]
2022-05-27 13:01     ` Peter Stephenson
2022-05-27 15:29       ` Daniel Shahaf

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=423ac4eb-9075-4ba2-bc26-51402681619b@www.fastmail.com \
    --to=d.s@daniel.shahaf.name \
    --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).