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

PATH_DIRS and command completion



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