: head /usr/share/zsh/vendor-completions/_systemctl
#compdef systemctl

(( $+functions[_systemctl_command] )) || _systemctl_command()
{
  local -a _systemctl_cmds
  _systemctl_cmds=(
    "list-sockets:List sockets"
    "list-timers:List timers"
    "list-units:List units"
    "start:Start (activate) one or more units"

Pier Paolo Grassi


Il giorno sab 11 feb 2023 alle ore 22:27 Bart Schaefer <schaefer@brasslantern.com> ha scritto:
On Sat, Feb 11, 2023 at 1:19 PM Pier Paolo Grassi <pierpaolog@gmail.com> wrote:
>
> Hello, there are some completion functions that aren't loaded, it appears.
>
> it's not even listed. The completion function is defined in
> /usr/share/zsh/vendor-completions

That means it's provided by the OS zsh package, it's not present in
the zsh source tree.

> What can I do to debug the issue?

Check that the file starts with either

#compdef ...

or

#autoload