Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Composing completions for a wrapper script
Hi, Jérémie,
kubectdc command as defined here has an extra first argument. kubectl doesn't expect
it, and because of that the completion gets extremely confused if I do compdef like this.
What I want is to be able to provide my completion for the first argument, and re-use the kubectl
completion for the rest of the args.
> On 31 Oct 2021, at 02:00, Jérémie Roquet <jroquet@xxxxxxxxxxxxx> wrote:
>
> Hi Anton,
>
>> Le dim. 31 oct. 2021 à 00:08, Anton Suslov <anton_suslov@xxxxxx> a écrit :
>> Is it possible to somehow reuse [kubectl's] completion for kubectldc command
>
> Try the following:
>
> compdef kubectldc=kubectl
>
> Best regards,
>
> --
> Jérémie
Messages sorted by:
Reverse Date,
Date,
Thread,
Author