Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Feature suggestion for autoload
- X-seq: zsh-workers 25283
- From: "Richard Hartmann" <richih.mailinglist@xxxxxxxxx>
- To: "Zsh hackers list" <zsh-workers@xxxxxxxxxx>
- Subject: Feature suggestion for autoload
- Date: Tue, 15 Jul 2008 19:10:19 +0200
- 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:mime-version:content-type:content-transfer-encoding :content-disposition; bh=nqSPssuhMQKgHcxcFgq/mHb+MoXRWeTyV6vp3Ce4MAY=; b=vuyp6P0QIz7h3Yuf0CyN3CXJhINyakRN8G0BjkjfLNtpELBSyohuevb1XckdWzXjxs 6XsURsw5UnZCn1Iq2vR9miKZeTqhEzUH3yAwGpFyiiEqzmQa1/tNkx64BzeoiW4H8/PS b/XchOEQxScKl/b6MJZlauSfUH6db/LBOqd38=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=POFnGk8UDvgGRg/kvKJ69AxH0slI3nrqTqeXIxFc0x4CjdiI+e62NFWJaN+GpVQMn0 8+Eqn8QGvqAT4YVigFgauuLuglsjhaR1ezC3sTMkhIUa6gjfO9NzV3N+HQZclPek5c02 zIQziFHtxuoN83bdiwdWIt03Ln6v0D5MND+f4=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
I just wanted to put some functions in an extra folder & autoload
them, but I don't have my ZSH book here so I could not look up
the snippet to autoload all functions in a directory. This has got
me thinking about an extra option for autoload which allows you
to autoload all functions in a directory. Additionally, an option to
autoload everything it finds could be useful for some though I
doubt I would use it.
Another option would be to define an array and load everything
in said array. This could make a long list os autoloads more
readable.
I am not sure how useful this would be for others, so feedback
would be appreciated.
Richard
PS: Yes, I am aware this could all be done in a function. A
function which could the be autoloaded for some nice
recursion :)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author