sorry, too soon... autoload +X _systemctl does not produce any output, but it does not gives an error though but the completion context for systemctl does not change, _systemctl is not present, even after a compdef _systemctl systemctl but functions _systemctl now returns the correctly loaded function body Pier Paolo Grassi Il giorno dom 12 feb 2023 alle ore 19:13 Pier Paolo Grassi < pierpaolog@gmail.com> ha scritto: > autoload +X _systemctl > > does not produce any output, but it does not gives an error though > but the completion context for systemctl does not change, _systemctl is > not present > > Pier Paolo Grassi > > > Il giorno dom 12 feb 2023 alle ore 18:52 Pier Paolo Grassi < > pierpaolog@gmail.com> ha scritto: > >> 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 >>> 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 >>> >>