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

Re: cdr completion



On Tue, 18 Feb 2014 17:34:59 +0100
Yuri D'Elia <wavexx@xxxxxxxxxx> wrote:
> On 02/18/2014 04:45 PM, Peter Stephenson wrote:
> >> will still try to complete usernames (for the ~user home directory
> >> completion), which is something I'd like to avoid.
> >>
> >> Is this avoidable?
> > 
> > Hmm... I think you can turn it off generally with something like
> > 
> > zstyle ':completion::complete:-tilde-::' tag-order named-directories
> 
> This would be fine for me. The ~username expansion is something I never
> ever used.
> 
> However the above style doesn't really disable the expansion for me.

Sorry, try:

zstyle ':completion::complete:-tilde-::' tag-order - named-directories

or perhaps better

zstyle ':completion::complete:-tilde-::' tag-order - \
  'named-directories directory-stack'

instead.  For some reason the other form was working for me, so I failed
to go and read the documentation, which is lethal.  The "-" is needed
to tell it that you *only* want the tags you specify completed.

pws



Messages sorted by: Reverse Date, Date, Thread, Author