From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 85 invoked from network); 23 Mar 2007 00:01:41 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.8 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 Mar 2007 00:01:41 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 10368 invoked from network); 23 Mar 2007 00:01:34 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Mar 2007 00:01:34 -0000 Received: (qmail 11072 invoked by alias); 23 Mar 2007 00:01:32 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23229 Received: (qmail 11062 invoked from network); 23 Mar 2007 00:01:32 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 23 Mar 2007 00:01:32 -0000 Received: (qmail 10153 invoked from network); 23 Mar 2007 00:01:32 -0000 Received: from mtaout02-winn.ispmail.ntl.com (81.103.221.48) by a.mx.sunsite.dk with SMTP; 23 Mar 2007 00:01:28 -0000 Received: from aamtaout01-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com with ESMTP id <20070323000127.MUGG3103.mtaout02-winn.ispmail.ntl.com@aamtaout01-winn.ispmail.ntl.com> for ; Fri, 23 Mar 2007 00:01:27 +0000 Received: from pwslaptop.csr.com ([81.107.47.85]) by aamtaout01-winn.ispmail.ntl.com with ESMTP id <20070323000127.YJTG219.aamtaout01-winn.ispmail.ntl.com@pwslaptop.csr.com> for ; Fri, 23 Mar 2007 00:01:27 +0000 Received: from pwslaptop.csr.com (pwslaptop.csr.com [127.0.0.1]) by pwslaptop.csr.com (8.13.8/8.13.7) with ESMTP id l2N013h0009082 for ; Fri, 23 Mar 2007 00:01:05 GMT Message-Id: <200703230001.l2N013h0009082@pwslaptop.csr.com> From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: Completion alias In-Reply-To: Message from =?UTF-8?Q?J=C3=B6rg?= Sommer of "Thu, 22 Mar 2007 22:51:51 GMT." Date: Fri, 23 Mar 2007 00:01:03 +0000 =?UTF-8?Q?J=C3=B6rg?= Sommer wrote: > is it possible to tell the completion system, that two commands are the > same? mutt and mutt-ng take the same arguments, but the completion for > mutt-ng arguments is not enabled. compdef mutt-ng=mutt This is documented a bit obscurely (in the description of compdef in zshcompsys.1): Alternatively, all the arguments may have the form `CMD=SERVICE'. Here SERVICE should already have been defined by `CMD1=SERVICE' lines in #compdef files, as described above. The argument for CMD will be completed in the same way as SERVICE. Actually, it doesn't matter how the "service" was defined, it just has to be registered as a completion, so the "CMD1=SERVICE" is a bit of a red herring, unless I'm missing something. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/