Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Where do these completions come from?
- X-seq: zsh-users 27247
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: dominik.vogt@xxxxxx, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Where do these completions come from?
- Date: Sun, 17 Oct 2021 12:00:09 -0700
- Archived-at: <https://zsh.org/users/27247>
- In-reply-to: <20211016213045.GA8749@gmx.de>
- List-id: <zsh-users.zsh.org>
- References: <20211015184034.GA7752@gmx.de> <CAN=4vMrod0n_1PTuPooa_tCXOUuOiypcZGrOGyH6wr2YnsH6GQ@mail.gmail.com> <20211015185603.GA8362@gmx.de> <CAN=4vMoadZvRj1=uS47Px8zDaU7DxPSkmd77205kGhh1z8NNpw@mail.gmail.com> <CAH+w=7bZws-e4e=tJXSOkg3YkKUB+ieSQ5VFuifzpGTCWo-Pjw@mail.gmail.com> <20211015202640.GA11362@gmx.de> <CAH+w=7aY2ZF_oNjOoCLKbFcq5OD=VUG4Ha3wUGwd2a6Zk4G0zQ@mail.gmail.com> <20211016213045.GA8749@gmx.de>
On Sat, Oct 16, 2021 at 2:33 PM Dominik Vogt <dominik.vogt@xxxxxx> wrote:
>
> On Sat, Oct 16, 2021 at 11:59:34AM -0700, Bart Schaefer wrote:
> > On Fri, Oct 15, 2021 at 1:29 PM Dominik Vogt <dominik.vogt@xxxxxx> wrote:
> > >
> > > Is there a way to tell zsh only to complete parameter names that
> > > are actually in the environment and not zsh internal ones?
> >
> > It ought to be possible with the tag-order style and examination of
> > the keys/values in the $parameters special hash
>
> 'k. Please don't waste time on this, it's not important.
Actually the tag-order part is the hard bit and probably overkill
anyway. This should be enough:
zstyle -e :completion::complete:-command-::parameters \
ignored-patterns 'reply=(${(k)parameters[(R)*(hidden|undefined)*])'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author