From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8671 invoked from network); 3 Aug 2005 10:19:51 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 3 Aug 2005 10:19:51 -0000 Received: (qmail 98127 invoked from network); 3 Aug 2005 10:19:45 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 3 Aug 2005 10:19:45 -0000 Received: (qmail 2542 invoked by alias); 3 Aug 2005 10:19:38 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9217 Received: (qmail 2532 invoked from network); 3 Aug 2005 10:19:38 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 3 Aug 2005 10:19:38 -0000 Received: (qmail 96973 invoked from network); 3 Aug 2005 10:19:38 -0000 Received: from cluster-e.mailcontrol.com (HELO rly14e.srv.mailcontrol.com) (217.79.216.190) by a.mx.sunsite.dk with SMTP; 3 Aug 2005 10:19:30 -0000 Received: from iris.logica.co.uk (iris.logica.co.uk [158.234.9.163]) by rly14e.srv.mailcontrol.com (MailControl) with ESMTP id j73AJ7sM018256 for ; Wed, 3 Aug 2005 11:19:07 +0100 Received: from trentino.logica.co.uk ([158.234.142.59]) by iris.logica.co.uk (8.12.3/8.12.3/Debian -4) with ESMTP id j73AJ7Tp007370 for ; Wed, 3 Aug 2005 11:19:07 +0100 Received: from trentino.groupinfra.com (localhost [127.0.0.1]) by trentino.logica.co.uk (Postfix) with ESMTP id C7F5834542 for ; Wed, 3 Aug 2005 12:19:06 +0200 (CEST) X-VirusChecked: Checked X-StarScan-Version: 5.0.7; banners=.,-,- In-reply-to: <20050803101007.GA9755@spiegl.de> From: Oliver Kiddle References: <20050802180158.GA10402@spiegl.de> <19401.1123058911@trentino.groupinfra.com> <20050803101007.GA9755@spiegl.de> To: zsh-users@sunsite.dk Subject: Re: simple completion example? Date: Wed, 03 Aug 2005 12:19:06 +0200 Message-ID: <2356.1123064346@trentino.groupinfra.com> X-Scanned-By: MailControl A-05-01-05 (www.mailcontrol.com) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00, MULTI_REMOVAL_1WORD autolearn=ham version=3.0.4 Andy Spiegl wrote: > > Try looking at _aptitude instead. It's a lot simpler. > Hm, but the aptitude completion doesn't work with the commands (install, > purge, ...) just the options. It does work with the commands. It runs `aptitude -h' and parses the result to get a list of the commands (and descriptions) so perhaps you don't have aptitude installed. If it doesn't find aptitude installed, it won't complete any commands. Try adding in a manual assignment to the cmds array: cmds=( install:install/upgrade\ packages remove:remove\ packages ) You should then see how it should work. You could also look at _xauth but that doesn't handle options. 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.