From 3e93180e386de3f232b2139f620c3dd43a6516f4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 6 Mar 2009 19:12:52 +0100 Subject: function: autoload the cool way --- etc/function | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'etc/function') 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 -- cgit v1.2.3