Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Feature suggestion for autoload



On Thu, 17 Jul 2008 01:44:33 +0200
"Richard Hartmann" <richih.mailinglist@xxxxxxxxx> wrote:
> On Wed, Jul 16, 2008 at 03:39, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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 <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



Messages sorted by: Reverse Date, Date, Thread, Author