diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-03-06 19:12:52 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-03-06 19:12:52 +0100 |
commit | 3e93180e386de3f232b2139f620c3dd43a6516f4 (patch) | |
tree | 12c048bd14f3aa8f755b7eafed49e6a463445e55 /etc/function | |
parent | 50b85bc7caed17308bf56bdd04c69393115e55da (diff) |
function: autoload the cool way
Diffstat (limited to 'etc/function')
-rw-r--r-- | etc/function | 4 |
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 |