Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATH_DIRS and command completion
- X-seq: zsh-users 16705
- From: Christian Neukirchen <chneukirchen@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: PATH_DIRS and command completion
- Date: Fri, 06 Jan 2012 18:11:22 +0100
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Sender: chris@juno
Hi,
just yesterday I found the PATH_DIRS option and really like the
behavior:
% ls -l /usr/bin/core_perl/cpan
-rwxr-xr-x 1 root root 5094 Dec 29 21:46 /usr/bin/core_perl/cpan*
% core_perl/cpan
zsh: no such file or directory: core_perl/cpan
% setopt PATH_DIRS
% core_perl/cpan
cpan shell -- CPAN exploration and modules installation (v1.960001)
...
Unfortunately, tab command completion doesn't complete the folders in
$PATH. Has anyone hacked that in already?
I.e. I want:
% cor<TAB>
core corelist corepkg corrupt_mpeg2 core_perl/
% core_perl/<TAB>
c2ph* dprofpp* libnetcfg* pod2html* prove* shasum*
config_data* enc2xs* perlbug* pod2latex* psed@ splain*
...
Cheers,
--
Christian Neukirchen <chneukirchen@xxxxxxxxx> http://chneukirchen.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author