From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4077 invoked from network); 10 Feb 2003 11:03:39 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 10 Feb 2003 11:03:39 -0000 Received: (qmail 4704 invoked by alias); 10 Feb 2003 11:03:17 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5903 Received: (qmail 4696 invoked from network); 10 Feb 2003 11:03:17 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 10 Feb 2003 11:03:17 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [193.109.254.147] by sunsite.dk (MessageWall 1.0.8) with SMTP; 10 Feb 2003 11:3:16 -0000 X-VirusChecked: Checked X-Env-Sender: kiddleo@logica.com X-Msg-Ref: server-5.tower-27.messagelabs.com!1044874821!303 Received: (qmail 9381 invoked from network); 10 Feb 2003 11:00:21 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-5.tower-27.messagelabs.com with SMTP; 10 Feb 2003 11:00:21 -0000 Received: from finches.logica.co.uk ([158.234.142.11]) by iris.logica.co.uk (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id LAA27296; Mon, 10 Feb 2003 11:03:16 GMT X-Authentication-Warning: iris.logica.co.uk: Host [158.234.142.11] claimed to be finches.logica.co.uk Received: from finches.logica.co.uk (localhost [127.0.0.1]) by finches.logica.co.uk (8.11.6/8.11.6/SuSE Linux 0.5) with ESMTP id h1AB6dU04419; Mon, 10 Feb 2003 12:06:39 +0100 cc: Zsh users list In-reply-to: <20030206013256.9315.qmail@web12304.mail.yahoo.com> From: Oliver Kiddle References: <20030206013256.9315.qmail@web12304.mail.yahoo.com> To: Le Wang Subject: Re: completion question Date: Mon, 10 Feb 2003 12:06:39 +0100 Message-ID: <4417.1044875199@finches.logica.co.uk> Sender: kiddleo@logica.com On 5 Feb, Le Wang wrote: > Hi, > > I have a script that is basically a proxy to run other commands and show the > output in a new xterm window, e.g. > > ~> xr make > > In this case, how can I get the completion system to ignore "xr" and complete > for the command? compdef _precommand xr > Ohh, and xr can take a single option --nopause, but the option should always > come before make. Then you'll need a function specifically for xr: _xr() { _arguments '--nopause' '*::command:_normal' } > I'm just starting out with the completion system, the complexity involved > seems, well, mind boggling. What are some good resources? Best introduction is John Beppu's Linux Magazine articles which are linked to from: http://zsh.sunsite.dk/links.html Next, you could try the user guide: http://zsh.sunsite.dk/Guide/zshguide.html Oliver This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.