summaryrefslogtreecommitdiff
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
parent05e302926fba8366922ebc3fce60405dcde76df2 (diff)
Use filemode +x to autoload a function file
-rw-r--r--etc/function5
-rwxr-xr-x[-rw-r--r--]etc/functions/check_com0
-rwxr-xr-x[-rw-r--r--]etc/functions/chpwd0
-rwxr-xr-x[-rw-r--r--]etc/functions/dirinfo0
-rwxr-xr-x[-rw-r--r--]etc/functions/extr0
-rwxr-xr-x[-rw-r--r--]etc/functions/git-hook0
-rwxr-xr-x[-rw-r--r--]etc/functions/gtd-move0
-rwxr-xr-x[-rw-r--r--]etc/functions/imagetag0
-rwxr-xr-x[-rw-r--r--]etc/functions/off0
-rwxr-xr-x[-rw-r--r--]etc/functions/plonkhost0
-rwxr-xr-x[-rw-r--r--]etc/functions/put0
-rwxr-xr-x[-rw-r--r--]etc/functions/reload0
-rwxr-xr-x[-rw-r--r--]etc/functions/rtab0
-rwxr-xr-x[-rw-r--r--]etc/functions/salias0
-rwxr-xr-x[-rw-r--r--]etc/functions/world-readable0
-rwxr-xr-x[-rw-r--r--]etc/functions/xexport0
-rwxr-xr-x[-rw-r--r--]etc/functions/xsource0
-rwxr-xr-x[-rw-r--r--]etc/functions/youtube-watch0
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