From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27332 invoked from network); 26 Mar 2006 19:21:32 -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; 26 Mar 2006 19:21:32 -0000 Received: (qmail 1612 invoked from network); 26 Mar 2006 19:21:24 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 26 Mar 2006 19:21:24 -0000 Received: (qmail 26969 invoked by alias); 26 Mar 2006 19:21:16 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10089 Received: (qmail 26958 invoked from network); 26 Mar 2006 19:21:16 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 26 Mar 2006 19:21:16 -0000 Received: (qmail 579 invoked from network); 26 Mar 2006 19:21:16 -0000 Received: from lila.akte.de (213.239.211.75) by a.mx.sunsite.dk with SMTP; 26 Mar 2006 19:21:14 -0000 Received: (root@lila.akte.de) by lila.akte.de id ; Sun, 26 Mar 2006 21:21:03 +0200 KRecCount: 1 KInfo: virscan ok KInfo: !spam auth Received: from condor.int.spiegl.de (p549778EF.dip.t-dialin.net [84.151.120.239]) by lila.akte.de via kasmail (2.9) id <1FNanH-2YC-0-lila>; Sun, 26 Mar 2006 19:20:56 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 k2QJKunY027281 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 26 Mar 2006 21:20:56 +0200 Received: (from spiegl@localhost) by condor.int.spiegl.de (8.13.4/8.13.4/Submit) id k2QJKsnB027275 for zsh-users@sunsite.dk; Sun, 26 Mar 2006 21:20:54 +0200 X-Authentication-Warning: condor.int.spiegl.de: spiegl set sender to zsh.Andy@spiegl.de using -f Date: Sun, 26 Mar 2006 21:20:54 +0200 From: Andy Spiegl To: zsh-users@sunsite.dk Subject: Re: which completion function are used for aliases? Message-ID: <20060326192054.GA27247@spiegl.de> Mail-Followup-To: zsh-users@sunsite.dk References: <20060325000835.GA31757@spiegl.de> <060325103101.ZM21832@torch.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <060325103101.ZM21832@torch.brasslantern.com> 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 Hi Bart, > Try "unsetopt complete_aliases". Aaah, interesting! I guess I added this option a long time ago and had forgotten about it, but the name of the option really is a bit confusing. :-) Now, is it also possible to make zsh "know" the options of the alias, so that I don't have to hardcode the aliases in my completion function? But how can I get the details of the defined aliases??? Right now, my completion function uses this code: --------------- local dir=${words[(r)--dir=*]##--dir=} if [[ -z $dir ]]; then integer dirind=${words[(i)--dir]} if (( dirind )); then dir=$words[dirind+1] fi fi # Default directories (depending on which alias is used) if [[ -z $dir ]]; then if [[ $words[1] = gigaset2 ]]; then dir="/home/spiegl/movies/gigaset/PVR/" elif [[ $words[1] = gigaset3 ]]; then dir="/data2/movies/gigaset/PVR/" elif [[ $words[1] = gigaset-ext ]]; then dir="/extern-dos/Video/" else dir="/data/movies/gigaset/PVR/" fi fi -------------- Thx, Andy. PS: gigaset2='gigaset --dir /home/spiegl/movies/gigaset/PVR' gigaset3='gigaset --dir /data2/movies/gigaset/PVR' gigaset-ext='gigaset --dir /extern-dos/Video' -- New Windows XP error message: "File not found. Should I fake it? (Y/N)"