Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: completion functions not loaded



echo $_comps[systemctl]
_systemctl
I think that is the only definition of this function that I have

the strange thing is that it's not autoloaded even if it is scheduled to do so
is it possibile that some error prevents it from loading?

Pier Paolo Grassi


Il giorno sab 11 feb 2023 alle ore 22:31 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> ha scritto:
On Sat, Feb 11, 2023 at 1:27 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> > What can I do to debug the issue?
>
> Check that the file starts with either
>
> #compdef ...
>
> or
>
> #autoload

Sorry, accidentally sent too soon.

And that the #compdef line mentions the "systemctl" command.  You can
also check $_comps[systemctl], it's possible that something else
loaded later is replacing it.
--
Pier Paolo Grassi


Messages sorted by: Reverse Date, Date, Thread, Author