diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-11-30 11:22:52 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-11-30 11:22:52 +0100 |
commit | 24028efb55a7f5f07a5cf772eb84f34b809d46a6 (patch) | |
tree | 3becd5715997770c024278a04bed968a5a254870 /etc/function | |
parent | 05e302926fba8366922ebc3fce60405dcde76df2 (diff) |
Use filemode +x to autoload a function file
Diffstat (limited to 'etc/function')
-rw-r--r-- | etc/function | 5 |
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 |