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

Re: cd completion and CDABLE_VARS



Hi Peter!

>> I am looking for a step by step guide (a tutorial) to get some funky
>> completions working. Does something like this exist?
>
> Try http://www.zsh.sunsite.dk/Guide/ chapter 6, although that's not
> perfect.

Thanks, http://zsh.sunsite.dk/Guide/zshguide06.html seems to be a
good starting point

> Otherwise wait for the forthcoming `From Bash to Zsh: Conquring the
> Command Line' by Kiddle, Peek and Stephenson, due from Apress in June.

Sounds interesting

>> > zstyle ':completion:*:complete:(cd|pushd):*' tag-order \
>> >   'local-directories path-directories directory-stack' 'named-directories'
>> 
>> I tried to use this but it seems to have no effect.
>
> Yep, sorry, you need:
>
> zstyle ':completion:*:complete:(cd|pushd):*' tag-order - \
>   'local-directories path-directories directory-stack' 'named-directories'
>
> The `-' means don't try anything else, otherwise they are added at the
> end of the list.  This is in the manual entry for the tag-order style.

Yepp. That works :-)
A minor issue is, that ^xh still shows the users tag.

Stefan.



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