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

Re: zsh: complete $PATH specs / emacs keybindings when editor is vi



"Edd Barrett" wrote:
> 1) Can zsh expand paths separated by colons. This is useful when
> setting PAT, MANPATH, LD_LIBRARY_PATH etc.
> 
> for example:
> export PATH=$PATH:/usr/local/b<TAB>
> should expand to:
> export PATH=$PATH:/usr/local/bin/

As Mikael said, the new completion system will handle this: either
"autoload -U compinit; compinit" in .zshrc or do "autoload -U
compinstall; compinstall" just the once to help you set it up.

Note, however, that PATH is tied to the array path and

path=($path /usr/local/b<TAB>)

is equivalent to the above assuming, which is highly likely to be the
case, that PATH is already marked for export.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



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