Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [RFC][PATCH] Add change-directory() widget function
- X-seq: zsh-workers 48644
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Cc: Marlon Richert <marlon.richert@xxxxxxxxx>
- Subject: Re: [RFC][PATCH] Add change-directory() widget function
- Date: Wed, 21 Apr 2021 20:11:39 +0000
- Archived-at: <https://zsh.org/workers/48644>
- In-reply-to: <CAH+w=7Z7-WLjZgTk1XQrddJPen3bJJ4LU0-Vs5nTmwC8n+sWFQ@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <95CDA630-4EE5-4003-8D9C-CCCB9A47F109@gmail.com> <CAH+w=7bpkYktd4UN5DtUS45MMNdWYr7c-OG7DHOX21QXG4LMUA@mail.gmail.com> <4D587C0C-EB5F-4A58-A0AE-D45E43F432CD@gmail.com> <20210420221429.GF1035@tarpaulin.shahaf.local2> <CAH+w=7Z7-WLjZgTk1XQrddJPen3bJJ4LU0-Vs5nTmwC8n+sWFQ@mail.gmail.com>
Bart Schaefer wrote on Tue, Apr 20, 2021 at 20:18:24 -0700:
> On Tue, Apr 20, 2021 at 3:14 PM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> >
> > Should any of the words be quoted to protect against global aliases?
>
> This is generally speaking a fruitless task. Rather the function
> should be loaded with e.g. "autoload -U", as compinit does for all
> completion functions.
How so? «PM_UNALIASED» turns «noaliases» on for the duration of parsing
the function itself, not for the duration of parsing the code which the
function dumps into $BUFFER when executed.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author