Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: globbing
- X-seq: zsh-users 4104
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Will Yardley <william@xxxxxxxxxxxxxxx>
- Subject: Re: globbing
- Date: Fri, 10 Aug 2001 10:43:20 +0100
- Cc: Zsh Users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20010810002007.A4701@xxxxxxxxxxxxxxx>
- Sender: kiddleo@xxxxxxxxxxxxxxxx
Will Yardley wrote:
>
> in zsh, it'll split out the whole list unless i put the slash after the
> asterisk, which can get pretty messy
> glob_complete is almost what i want, only ideally i'd like it to not display
> the entire array.
Have you tried the _match completer? If you don't want the entire array
displayed, what do you want displayed?
> i think the second question has been brought up before, but is there a way to
> do:
> % cd /usr/l<tab>bin
> and have that complete to /usr/local/bin as in bash (without putting a space
> after /usr?
The _prefix completer is probably what you want then. It ignores the
suffix. It seems to work in the same way as bash to me. So try:
zstyle ':completion:*::::' completer _match _prefix _complete
making sure you leave the completeinword option set.
Oliver
_____________________________________________________________________
This message has been checked for all known viruses by the
MessageLabs Virus Scanning Service. For further information visit
http://www.messagelabs.com/stats.asp
Messages sorted by:
Reverse Date,
Date,
Thread,
Author