summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-06 19:12:52 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-06 19:12:52 +0100
commit3e93180e386de3f232b2139f620c3dd43a6516f4 (patch)
tree12c048bd14f3aa8f755b7eafed49e6a463445e55
parent50b85bc7caed17308bf56bdd04c69393115e55da (diff)
function: autoload the cool way
-rw-r--r--etc/function4
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/function b/etc/function
index 783d79b..a9f6915 100644
--- a/etc/function
+++ b/etc/function
@@ -6,9 +6,7 @@ autoload catch throw
autoload zargs
# own functions
-for funcfile in $ZDIR/functions/*(*N);
- autoload ${funcfile:t}
-unset funcfile
+autoload $ZDIR/functions/*(*N:t)
function Start Stop Restart Reload {
typeset script