Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Feature suggestion for autoload
- X-seq: zsh-workers 25287
- From: "Richard Hartmann" <richih.mailinglist@xxxxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Feature suggestion for autoload
- Date: Thu, 17 Jul 2008 01:44:33 +0200
- Cc: "Zsh hackers list" <zsh-workers@xxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Uod9Ox5xMZImLjBAfuHsyjdPUQ9RPjMWWTATJZyBGLQ=; b=j+DgfcFusIQXxl31C020nRM7xjAYEutGhFIfioH+OJ5vPlX44rUEcX0DhFMW3GyHe1 LszAHuCWj99NhBRvxFPWaeYM+9TYq8DPWdDv31uV5/cFYXOsbDrq0kfQvSOpEqMPdG5S v7cLM8Z4MXHLcnVYf2oVDcAeOxFZwJKCPWPHw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=G3WnCdg+pKc8plZV+gR3pTDxbljBewzNpxL4wsXGdz9LOUjyaMPxMAwDOHQXe6WfQd XeUFL9WizrSI7icjGGsAK6n4HxsdLtmZMGMPRNswekVfyzQjZbrVNPEyBvGQ/PB2OloI eMoUwwke2nzhfL9NNp7XBYtVpY3yT2PmWpvLs=
- In-reply-to: <080715183948.ZM10577@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <2d460de70807151010m344b9a7dmeaca569f538b51c8@xxxxxxxxxxxxxx> <080715183948.ZM10577@xxxxxxxxxxxxxxxxxxxxxx>
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)
It was the part with not loading files that have a leading underscore that
eluded me.
> fpath+=(thedirectory)
> cd thedirectory
> autoload *
> cd -
True, but that's not as elegant as the above. As it was not time critical,
I prefered not to 'hack' something up.
> "autoload" is just an alias for "typeset -fu" ... I'm excited neither
> about making it a separate implementation nor about teaching typedef
> how to read directories.
Good reason, agreed.
> "Finds" where?
What I meant was 'autoload every file you find in fpath'. That suggestion
is moot now, though.
> Yes, you can certainly do that. There's no practical limit on the
> number of function names you can pass to a single autoload command.
Brain fart, of course you can. Sorry.
Thanks,
Richard
Messages sorted by:
Reverse Date,
Date,
Thread,
Author