Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh: complete $PATH specs / emacs keybindings when editor is vi
- X-seq: zsh-users 12879
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: zsh: complete $PATH specs / emacs keybindings when editor is vi
- Date: Thu, 29 May 2008 10:42:23 +0100
- In-reply-to: <a6e8c1d0805290233l1aef207ap2509b2d48dff1e83@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <a6e8c1d0805290233l1aef207ap2509b2d48dff1e83@xxxxxxxxxxxxxx>
"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