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

Re: completion functions not loaded



yes i am now adapting these aliases to functions, thanks

Il giorno dom 12 feb 2023 alle 22:08 Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx> ha scritto:
On Sun, Feb 12, 2023 at 9:58 PM Pier Paolo Grassi <pierpaolog@xxxxxxxxx> 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


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