Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion functions not loaded
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author