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

Re: Where do these completions come from?



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