From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4549 invoked from network); 22 Mar 2007 23:18:55 -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.4 required=5.0 tests=AWL,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; 22 Mar 2007 23:18:55 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 75062 invoked from network); 22 Mar 2007 23:18:49 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 Mar 2007 23:18:49 -0000 Received: (qmail 5238 invoked by alias); 22 Mar 2007 23:18:47 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23227 Received: (qmail 5229 invoked from network); 22 Mar 2007 23:18:46 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 22 Mar 2007 23:18:46 -0000 Received: (qmail 74755 invoked from network); 22 Mar 2007 23:18:46 -0000 Received: from uucp.gnuu.de (84.16.234.68) by a.mx.sunsite.dk with SMTP; 22 Mar 2007 23:18:42 -0000 Received: by uucp.gnuu.de (Postfix, from userid 10) id 271BD18804C; Fri, 23 Mar 2007 00:18:42 +0100 (CET) Received: from news by alea.gnuu.de with local (Exim 4.50) id 1HUW8O-00071j-1S for zsh-workers@sunsite.dk; Thu, 22 Mar 2007 23:51:52 +0100 To: zsh-workers@sunsite.dk Path: not-for-mail From: =?UTF-8?Q?J=C3=B6rg?= Sommer Newsgroups: local.mailinglist.zsh Subject: Completion alias Date: Thu, 22 Mar 2007 22:51:51 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: alea.gnuu.de 1174603911 27013 192.168.0.5 (22 Mar 2007 22:51:51 GMT) X-Complaints-To: usenet@alea.gnuu.de User-Agent: slrn/0.9.8.1pl2 (Debian) Sender: news Hi, 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. I also want to write something like this: agi() { nice -n 4 agt-get install $@ ret=$? do_something_else return $ret } and the argument completion for agi should be the same as for apt-get install. Currently I use alias agi='nice -n 4 apt-get install', but I don't know, how to append the do_something_else command. Bye, Jörg. -- Life can only be understood backwards, but it must be lived forwards. (Soren Kierkegaard)