From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2197 invoked from network); 25 Mar 2006 00:09:14 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) 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.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Mar 2006 00:09:14 -0000 Received: (qmail 96194 invoked from network); 25 Mar 2006 00:08:59 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Mar 2006 00:08:59 -0000 Received: (qmail 7904 invoked by alias); 25 Mar 2006 00:08:53 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10075 Received: (qmail 7894 invoked from network); 25 Mar 2006 00:08:52 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 Mar 2006 00:08:52 -0000 Received: (qmail 95210 invoked from network); 25 Mar 2006 00:08:52 -0000 Received: from lila.akte.de (213.239.211.75) by a.mx.sunsite.dk with SMTP; 25 Mar 2006 00:08:51 -0000 Received: (root@lila.akte.de) by lila.akte.de id ; Sat, 25 Mar 2006 01:08:36 +0100 KRecCount: 1 KInfo: virscan ok KInfo: !spam auth Received: from condor.int.spiegl.de (p549751EA.dip.t-dialin.net [84.151.81.234]) by lila.akte.de via kasmail (2.9) id <1FMwKZ-36Q-0-lila>; Sat, 25 Mar 2006 00:08:35 GMT Received: from condor.int.spiegl.de (spiegl@localhost [127.0.0.1]) by condor.int.spiegl.de (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id k2P08Zv2032222 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 25 Mar 2006 01:08:35 +0100 Received: (from spiegl@localhost) by condor.int.spiegl.de (8.13.4/8.13.4/Submit) id k2P08Zbc032218 for zsh-users@sunsite.dk; Sat, 25 Mar 2006 01:08:35 +0100 X-Authentication-Warning: condor.int.spiegl.de: spiegl set sender to zsh.Andy@spiegl.de using -f Date: Sat, 25 Mar 2006 01:08:35 +0100 From: Andy Spiegl To: zsh-users@sunsite.dk Subject: which completion function are used for aliases? Message-ID: <20060325000835.GA31757@spiegl.de> Mail-Followup-To: zsh-users@sunsite.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-PGP-GPG-Keys: mail -s "send pgp" auto@spiegl.de X-Fingerprint: Key-ID C2CB30F0: 9051 50B9 13B0 57B9 10FD 48AC 4FA1 209B C2CB 30F0 X-Accepted-File-Formats: ASCII OpenOffice .rtf .pdf - *NO* Microsoft files please. X-why-you-shouldnt-use-MS-LookOut: http://www.jensbenecke.de/l-oe-en.php X-warum-man-MS-Outlook-vermeiden-sollte: http://www.jensbenecke.de/l-oe-de.php X-how-to-quote: http://learn.to/quote/ X-how-to-ask-questions: http://www.catb.org/~esr/faqs/smart-questions.html X-stupid-disclaimers: http://goldmark.org/jeff/stupid-disclaimers/ User-Agent: Mutt/1.5.9i When completing the options of an alias, is there a way to make zsh use the completion function of the corresponding command? Say, if condor:~>print ${_comps[program1]} _program1 condor:~>alias program2 program2=program1 --param1 then I would like zsh to use the completion function _program1 for the completion of program2? Of course I could manually define compdef _program1 program2 But is it possible to that automatically for (simple) aliases? Chau, Andy. -- Fotos: francisco.spiegl.de o _ _ _ Infos: peru.spiegl.de __o /\_ _ \\o (_)\__/o (_) -o) Andy, Heidi, Francisco _`\<,_ _>(_) (_)/<_ \_| \ _|/' \/ /\\ heidi.und.andy@spiegl.de (_)/ (_) (_) (_) (_) (_)' _\o_ _\_v ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Ever wonder about those people who spend $2.00 a piece on those little bottles of Evian water? Try spelling Evian backwards: NAIVE (George Carlin, US comedian)