Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completing within colon separated paths
- X-seq: zsh-users 3668
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx (Zsh users list), John Cooper <john.cooper@xxxxxxxxxxxxx>
- Subject: Re: Completing within colon separated paths
- Date: Wed, 14 Mar 2001 15:53:39 +0000
- In-reply-to: Your message of "14 Mar 2001 15:45:35 GMT." <m3ofv4icbk.fsf@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
> Is there a way to have TAB complete '/usr/local' from the X (marking cursor
> position) in the following:
>
> $ .:/home/jsc/bin:/usr/locX:/sbin:/usr/sbin:/usr/java/jdk1.3/bin
If you are using the new completion system, then it will work as long as
you are performing a parameter assignment (or it does for me). So
$ PATH=/foo/bar:...
or
$ typeset PATH=/foo/bar:...
should perform completion correctly. This is why it works in vared --- the
context is treated similarly to a parameter assignment. (You still need
expand-or-complete-prefix --- I don't know if it's to be considered a bug
that the colon before is used as a word separator while the one after
isn't.)
Now everything computes?
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author