It doesn't seem to do anything. Even inserting
setopt xtrace

just after #compdef systemctl in /usr/share/zsh/vendor-completions/_systemctl does not produce any output when trying to complete the systemctl command after opening a new shell

Pier Paolo Grassi


Il giorno dom 12 feb 2023 alle ore 18:41 Bart Schaefer <schaefer@brasslantern.com> ha scritto:
On Sun, Feb 12, 2023 at 9:23 AM Pier Paolo Grassi <pierpaolog@gmail.com> wrote:
>
> 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?

Yes; try
  autoload +X _systemctl