From: Pier Paolo Grassi <pierpaolog@gmail.com>
To: Roman Perepelitsa <roman.perepelitsa@gmail.com>
Cc: Bart Schaefer <schaefer@brasslantern.com>,
Zsh-Users List <zsh-users@zsh.org>
Subject: Re: completion functions not loaded
Date: Sun, 12 Feb 2023 22:09:53 +0100 [thread overview]
Message-ID: <CAP+y1xCb_=tgzfBh5xKT+4jLdm1zqQ=x72bPgY1ORqWskR-YiQ@mail.gmail.com> (raw)
In-Reply-To: <CAN=4vMpHbUru2BkOLUVxJT8sLbELoJ+_Uin+gBo2gUkCV98LBA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 605 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1166 bytes --]
next prev parent reply other threads:[~2023-02-12 21:11 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-11 21:18 Pier Paolo Grassi
2023-02-11 21:27 ` Bart Schaefer
2023-02-11 21:30 ` Pier Paolo Grassi
2023-02-11 21:31 ` Bart Schaefer
2023-02-12 17:22 ` Pier Paolo Grassi
2023-02-12 17:41 ` Bart Schaefer
2023-02-12 17:52 ` Pier Paolo Grassi
2023-02-12 18:13 ` Pier Paolo Grassi
2023-02-12 18:27 ` Pier Paolo Grassi
2023-02-12 18:36 ` Roman Perepelitsa
2023-02-12 20:58 ` Pier Paolo Grassi
2023-02-12 21:08 ` Roman Perepelitsa
2023-02-12 21:09 ` Pier Paolo Grassi [this message]
2023-02-12 21:53 ` Bart Schaefer
2023-02-13 8:23 ` Roman Perepelitsa
2023-02-13 10:01 ` Pier Paolo Grassi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAP+y1xCb_=tgzfBh5xKT+4jLdm1zqQ=x72bPgY1ORqWskR-YiQ@mail.gmail.com' \
--to=pierpaolog@gmail.com \
--cc=roman.perepelitsa@gmail.com \
--cc=schaefer@brasslantern.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).