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

Re: How to make gzcat to complete directories?



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