Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to make gzcat to complete directories?
- X-seq: zsh-users 4190
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- Subject: Re: How to make gzcat to complete directories?
- Date: Tue, 04 Sep 2001 14:50:22 +0100
- Cc: ZSH users mailing list <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <001901c13543$cb5a53a0$21c9ca95@xxxxxxxxxxxxxx>
- Sender: kiddleo@xxxxxxxxxxxxxxxx
Borsenkow Andrej wrote:
>
> I must be pretty dumb, but ...
>
> bor@itsrm2% gzcat /u2/pub/gnu/bzip2-0.9.5b.tar.gz
> Completing compressed file
> bzip2-0.9.5b.tar.gz gnuplot-3.7.1.tar.gz mtools-3.9.6.tar.gz
> uucp-1.06.1.tar.gz
>
> and how do I descend?
I use this:
zstyle ':completion:*' file-patterns \
'%p:globbed-files *(-/):directories' '*:all-files'
to get directories with any completion that specified a glob for files.
Is that what you mean? For just gzcat, you'd have to make the context
more specific of course.
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