summaryrefslogtreecommitdiff
path: root/etc/function
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-11-30 11:22:52 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2008-11-30 11:22:52 +0100
commit24028efb55a7f5f07a5cf772eb84f34b809d46a6 (patch)
tree3becd5715997770c024278a04bed968a5a254870 /etc/function
parent05e302926fba8366922ebc3fce60405dcde76df2 (diff)
Use filemode +x to autoload a function file
Diffstat (limited to 'etc/function')
-rw-r--r--etc/function5
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/function b/etc/function
index 762a782..65bf35f 100644
--- a/etc/function
+++ b/etc/function
@@ -7,9 +7,8 @@ autoload catch throw
autoload zargs
# own functions
-autoload check_com chpwd dirinfo extr git-hook gtd-move \
- off plonkhost put reload rtab salias \
- world-readable xexport xsource youtube-watch
+for funcfile in $ZDIR/functions/*(*N);
+ autoload ${funcfile:t}
colors