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 | |
parent | 05e302926fba8366922ebc3fce60405dcde76df2 (diff) |
Use filemode +x to autoload a function file
-rw-r--r-- | etc/function | 5 | ||||
-rwxr-xr-x[-rw-r--r--] | etc/functions/check_com | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | etc/functions/chpwd | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | etc/functions/dirinfo | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | etc/functions/extr | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | etc/functions/git-hook | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | etc/functions/gtd-move | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | etc/functions/imagetag | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | etc/functions/off | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | etc/functions/plonkhost | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | etc/functions/put | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | etc/functions/reload | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | etc/functions/rtab | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | etc/functions/salias | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | etc/functions/world-readable | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | etc/functions/xexport | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | etc/functions/xsource | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | etc/functions/youtube-watch | 0 |
18 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 diff --git a/etc/functions/check_com b/etc/functions/check_com index b631e95..b631e95 100644..100755 --- a/etc/functions/check_com +++ b/etc/functions/check_com diff --git a/etc/functions/chpwd b/etc/functions/chpwd index 40070b2..40070b2 100644..100755 --- a/etc/functions/chpwd +++ b/etc/functions/chpwd diff --git a/etc/functions/dirinfo b/etc/functions/dirinfo index 5781580..5781580 100644..100755 --- a/etc/functions/dirinfo +++ b/etc/functions/dirinfo diff --git a/etc/functions/extr b/etc/functions/extr index 444b237..444b237 100644..100755 --- a/etc/functions/extr +++ b/etc/functions/extr diff --git a/etc/functions/git-hook b/etc/functions/git-hook index 3d0c705..3d0c705 100644..100755 --- a/etc/functions/git-hook +++ b/etc/functions/git-hook diff --git a/etc/functions/gtd-move b/etc/functions/gtd-move index c9eee09..c9eee09 100644..100755 --- a/etc/functions/gtd-move +++ b/etc/functions/gtd-move diff --git a/etc/functions/imagetag b/etc/functions/imagetag index 632de96..632de96 100644..100755 --- a/etc/functions/imagetag +++ b/etc/functions/imagetag diff --git a/etc/functions/off b/etc/functions/off index 97363dc..97363dc 100644..100755 --- a/etc/functions/off +++ b/etc/functions/off diff --git a/etc/functions/plonkhost b/etc/functions/plonkhost index 072147a..072147a 100644..100755 --- a/etc/functions/plonkhost +++ b/etc/functions/plonkhost diff --git a/etc/functions/put b/etc/functions/put index 93ecec0..93ecec0 100644..100755 --- a/etc/functions/put +++ b/etc/functions/put diff --git a/etc/functions/reload b/etc/functions/reload index a97cb70..a97cb70 100644..100755 --- a/etc/functions/reload +++ b/etc/functions/reload diff --git a/etc/functions/rtab b/etc/functions/rtab index 94d9c68..94d9c68 100644..100755 --- a/etc/functions/rtab +++ b/etc/functions/rtab diff --git a/etc/functions/salias b/etc/functions/salias index d8a3340..d8a3340 100644..100755 --- a/etc/functions/salias +++ b/etc/functions/salias diff --git a/etc/functions/world-readable b/etc/functions/world-readable index 7963223..7963223 100644..100755 --- a/etc/functions/world-readable +++ b/etc/functions/world-readable diff --git a/etc/functions/xexport b/etc/functions/xexport index 6c9235b..6c9235b 100644..100755 --- a/etc/functions/xexport +++ b/etc/functions/xexport diff --git a/etc/functions/xsource b/etc/functions/xsource index 2546965..2546965 100644..100755 --- a/etc/functions/xsource +++ b/etc/functions/xsource diff --git a/etc/functions/youtube-watch b/etc/functions/youtube-watch index fd60edf..fd60edf 100644..100755 --- a/etc/functions/youtube-watch +++ b/etc/functions/youtube-watch |