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

Re: cdr completion



On 02/18/2014 05:56 PM, Peter Stephenson wrote:
> 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.

Ah yes, thanks for pointing that out. Now it works as planned.
And, for maximum comfort:

zstyle ':completion::complete:-tilde-::' tag-order - \
  'named-directories:-home named-directories directory-stack'
zstyle ':completion::complete:-tilde-:*:named-directories-home' fake '/'

will complete ~ to ~/ if there is nothing else.




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