yes i am now adapting these aliases to functions, thanks

Il giorno dom 12 feb 2023 alle 22:08 Roman Perepelitsa <roman.perepelitsa@gmail.com> ha scritto:
On Sun, Feb 12, 2023 at 9:58 PM Pier Paolo Grassi <pierpaolog@gmail.com> wrote:
>
> alias systemctl='sudo SYSTEMD_PAGER= systemctl'

If you replace the alias with a function, it'll complete nicely.

    systemctl() sudo SYSTEMD_PAGER= systemctl "$@"

Alternatively, you can `setopt complete_aliases` and then manually
`compdef` every alias. I'm not a fan of this approach but it's an
option.

Roman.
--
Pier Paolo Grassi