From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19965 invoked from network); 17 Jul 2008 09:05:56 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 17 Jul 2008 09:05:56 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 28709 invoked from network); 17 Jul 2008 09:05:51 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Jul 2008 09:05:51 -0000 Received: (qmail 2039 invoked by alias); 17 Jul 2008 09:05:48 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25291 Received: (qmail 2027 invoked from network); 17 Jul 2008 09:05:47 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 17 Jul 2008 09:05:47 -0000 Received: from cluster-g.mailcontrol.com (cluster-g.mailcontrol.com [208.87.233.190]) by bifrost.dotsrc.org (Postfix) with ESMTPS id D5D4D80561C3 for ; Thu, 17 Jul 2008 11:05:31 +0200 (CEST) Received: from cameurexb01.EUROPE.ROOT.PRI ([193.128.72.68]) by rly06g.srv.mailcontrol.com (MailControl) with ESMTP id m6H95PQR004299 for ; Thu, 17 Jul 2008 10:05:25 +0100 Received: from news01 ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Thu, 17 Jul 2008 10:05:24 +0100 Date: Thu, 17 Jul 2008 10:05:24 +0100 From: Peter Stephenson To: "Zsh hackers list" Subject: Re: Feature suggestion for autoload Message-ID: <20080717100524.517305ed@news01> In-Reply-To: <2d460de70807161644u483c2c33l53734590710102d6@mail.gmail.com> References: <2d460de70807151010m344b9a7dmeaca569f538b51c8@mail.gmail.com> <080715183948.ZM10577@torch.brasslantern.com> <2d460de70807161644u483c2c33l53734590710102d6@mail.gmail.com> Organization: CSR X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 Jul 2008 09:05:24.0144 (UTC) FILETIME=[3F5D5B00:01C8E7EC] X-Scanned-By: MailControl A-08-50-03 (www.mailcontrol.com) on 10.71.0.116 X-Virus-Scanned: ClamAV 0.92.1/7733/Thu Jul 17 04:32:16 2008 on bifrost X-Virus-Status: Clean On Thu, 17 Jul 2008 01:44:33 +0200 "Richard Hartmann" wrote: > On Wed, Jul 16, 2008 at 03:39, Bart Schaefer wrote: > > fpath+=(thedirectory) > > autoload thedirectory/*(:t) > > Peter's snippet is > > autoload -- ~/.zfunc/[^_]*(:t) (Just to get this out of the way---I'm stating the absolute blindingly obvious but of course you need the directory in fpath in the second case, too.) -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070