From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16556 invoked from network); 4 Sep 2001 13:54:04 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 4 Sep 2001 13:54:04 -0000 Received: (qmail 20666 invoked by alias); 4 Sep 2001 13:53:46 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4190 Received: (qmail 20653 invoked from network); 4 Sep 2001 13:53:45 -0000 X-VirusChecked: Checked Sender: kiddleo@pag.logica.co.uk Message-ID: <3B94DC1E.4A1A4169@yahoo.co.uk> Date: Tue, 04 Sep 2001 14:50:22 +0100 From: Oliver Kiddle X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Borsenkow Andrej CC: ZSH users mailing list Subject: Re: How to make gzcat to complete directories? References: <001901c13543$cb5a53a0$21c9ca95@mow.siemens.ru> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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