From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22726 invoked from network); 24 Jun 1998 06:23:37 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 24 Jun 1998 06:23:37 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id CAA07690; Wed, 24 Jun 1998 02:18:35 -0400 (EDT) Resent-Date: Wed, 24 Jun 1998 02:18:35 -0400 (EDT) Date: Wed, 24 Jun 1998 08:19:48 +0200 (MET DST) Message-Id: <199806240619.IAA09951@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@math.gatech.edu In-reply-to: "Johan Sundström"'s message of Tue, 23 Jun 1998 16:57:40 +0200 Subject: Re: Compctl completion tweaking Resent-Message-ID: <"BEerP1.0.5u1.we9ar"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4159 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu johan_sundstrom@bigfoot.com wrote: > > I've been trying for some time to limit completion behaviour for some > commands in an intelligent manner. What I am trying to do is mask out > files not matching a given pattern, keeping directories intact, or, > better still, matching files according to some pattern and directories > according to some other pattern. Shouldn't that be possible using > something like -g '(*.rpm(.))|(*(-/))'? I tried for a while with some > print -m magic, but didn't quite manage to get it to work. > > (Sure, -g '*.rmp(.)' + -g '*(-/)' does a fair job, but I find it > irritating that I cant tab my way down into a subdirectory of a > directory containing *.rpm files this way.) > The string for the `-g' option may contain multiple pattern separated by blanks: compctl -g '*.rpm *(-/)' ... I hope you meant that. Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de