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

Re: cd completion and CDABLE_VARS

> 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

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

> > 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.

Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.


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