Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Programmatically loading completion for another command?
On Fri, May 27, 2022 at 9:30 AM Vorpal <zsh@xxxxxxxxx> wrote:
>
> * How do I trigger loading that file from my completion so I can offer
> completions to the flag --makepkg-args? Is it even possible?
Something like this should work, no other wrapper needed:
service=makepkg _sequence $_comps[makepkg]
In my install the service dispatcher function is _pkgtool not _pacman,
so using $_comps[makepkg] in the call to _sequence should get the
right one, whichever.
(Nod over to Daniel on the _services thread.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author