From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19059 invoked from network); 22 Jun 2004 23:05:39 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 22 Jun 2004 23:05:39 -0000 Received: (qmail 19747 invoked from network); 22 Jun 2004 23:04:07 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 Jun 2004 23:04:07 -0000 Received: (qmail 29230 invoked by alias); 22 Jun 2004 23:03:19 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7587 Received: (qmail 29179 invoked from network); 22 Jun 2004 23:03:17 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 22 Jun 2004 23:03:14 -0000 Received: (qmail 17223 invoked from network); 22 Jun 2004 23:03:09 -0000 Received: from pop.gmx.de (HELO mail.gmx.net) (213.165.64.20) by a.mx.sunsite.dk with SMTP; 22 Jun 2004 23:03:07 -0000 Received: (qmail 5782 invoked by uid 65534); 22 Jun 2004 23:02:40 -0000 Received: from xdsl-81-173-230-227.netcologne.de (EHLO psycho.linux.lan) (81.173.230.227) by mail.gmx.net (mp008) with SMTP; 23 Jun 2004 01:02:40 +0200 X-Authenticated: #17288288 Received: by psycho.linux.lan (sSMTP sendmail emulation); Wed, 23 Jun 2004 01:05:06 +0200 Date: Wed, 23 Jun 2004 01:05:06 +0200 From: Sartoo To: zsh-users@sunsite.dk Subject: Re: zsh completion of just latex files Message-ID: <20040622230506.GA11367@psycho.linux.lan> Mail-Followup-To: zsh-users@sunsite.dk References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Editor: VIM - Vi IMproved 6.3 (2004 June 7, compiled Jun 10 2004 08:57:55) X-Operating-System: Linux 2.6.7-2mdk (Mandrakelinux 10.1 (Cooker)) User-Agent: Mutt/1.5.6i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 * zzapper wrote: > Hi, Hi, > In a directory full of latex files *.tex and all the *.toc *.dvi etc I > want a widget to only complete *.tex file eg > vtex some_tex_file.tex > I would normally write a function for this, but I guess I should be > thinking zsh. > How should I do this? #v+ compctl -g '*.tex*' + -g '*(-/)' {la,v}tex pdflatex #v- I discovered this line in my ~/.zshrc and it works well, well enough for me, maybe also for you. For further information you have to RTFM zshcompctl(1). > zzapper (vim, cygwin, wiki & zsh) Sartoo -- Mitleid gibt's umsonst mein Freund - Neid, muss man sich verdienen. -- BO Nr.1