From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21672 invoked from network); 20 Feb 2006 18:51:50 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 20 Feb 2006 18:51:50 -0000 Received: (qmail 15299 invoked from network); 20 Feb 2006 18:51:44 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 Feb 2006 18:51:44 -0000 Received: (qmail 14893 invoked by alias); 20 Feb 2006 18:51:36 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9950 Received: (qmail 14884 invoked from network); 20 Feb 2006 18:51:35 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 20 Feb 2006 18:51:35 -0000 Received: (qmail 14119 invoked from network); 20 Feb 2006 18:51:35 -0000 Received: from acolyte.scowler.net (216.254.112.45) by a.mx.sunsite.dk with SMTP; 20 Feb 2006 18:51:34 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id 2EA9B70055; Mon, 20 Feb 2006 13:51:32 -0500 (EST) Date: Mon, 20 Feb 2006 13:51:32 -0500 From: Clint Adams To: Etienne =?iso-8859-1?Q?Chov=E9?= Cc: zsh-users@sunsite.dk Subject: Re: Completion Message-ID: <20060220185132.GA22202@scowler.net> Mail-Followup-To: Etienne =?iso-8859-1?Q?Chov=E9?= , zsh-users@sunsite.dk References: <43F9BBF7.2070009@crans.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43F9BBF7.2070009@crans.org> User-Agent: Mutt/1.5.11+cvs20060126 > But it won't complete prenom because it match with the first condition. Is > th'ere a easy colution to have completion ? Is this closer to what you want? #compdef whos _recherche () { if compset -P '*prenom='; then compadd - prenom1 prenom2 elif compset -P '(|*&)'; then compadd -S '=' - nom prenom elif compset -P '*A'; then compadd - nom1 nom2 fi } _arguments \ '*:expression:_recherche'