From 24028efb55a7f5f07a5cf772eb84f34b809d46a6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 30 Nov 2008 11:22:52 +0100 Subject: Use filemode +x to autoload a function file --- etc/function | 5 ++--- etc/functions/check_com | 0 etc/functions/chpwd | 0 etc/functions/dirinfo | 0 etc/functions/extr | 0 etc/functions/git-hook | 0 etc/functions/gtd-move | 0 etc/functions/imagetag | 0 etc/functions/off | 0 etc/functions/plonkhost | 0 etc/functions/put | 0 etc/functions/reload | 0 etc/functions/rtab | 0 etc/functions/salias | 0 etc/functions/world-readable | 0 etc/functions/xexport | 0 etc/functions/xsource | 0 etc/functions/youtube-watch | 0 18 files changed, 2 insertions(+), 3 deletions(-) mode change 100644 => 100755 etc/functions/check_com mode change 100644 => 100755 etc/functions/chpwd mode change 100644 => 100755 etc/functions/dirinfo mode change 100644 => 100755 etc/functions/extr mode change 100644 => 100755 etc/functions/git-hook mode change 100644 => 100755 etc/functions/gtd-move mode change 100644 => 100755 etc/functions/imagetag mode change 100644 => 100755 etc/functions/off mode change 100644 => 100755 etc/functions/plonkhost mode change 100644 => 100755 etc/functions/put mode change 100644 => 100755 etc/functions/reload mode change 100644 => 100755 etc/functions/rtab mode change 100644 => 100755 etc/functions/salias mode change 100644 => 100755 etc/functions/world-readable mode change 100644 => 100755 etc/functions/xexport mode change 100644 => 100755 etc/functions/xsource mode change 100644 => 100755 etc/functions/youtube-watch 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 old mode 100644 new mode 100755 diff --git a/etc/functions/chpwd b/etc/functions/chpwd old mode 100644 new mode 100755 diff --git a/etc/functions/dirinfo b/etc/functions/dirinfo old mode 100644 new mode 100755 diff --git a/etc/functions/extr b/etc/functions/extr old mode 100644 new mode 100755 diff --git a/etc/functions/git-hook b/etc/functions/git-hook old mode 100644 new mode 100755 diff --git a/etc/functions/gtd-move b/etc/functions/gtd-move old mode 100644 new mode 100755 diff --git a/etc/functions/imagetag b/etc/functions/imagetag old mode 100644 new mode 100755 diff --git a/etc/functions/off b/etc/functions/off old mode 100644 new mode 100755 diff --git a/etc/functions/plonkhost b/etc/functions/plonkhost old mode 100644 new mode 100755 diff --git a/etc/functions/put b/etc/functions/put old mode 100644 new mode 100755 diff --git a/etc/functions/reload b/etc/functions/reload old mode 100644 new mode 100755 diff --git a/etc/functions/rtab b/etc/functions/rtab old mode 100644 new mode 100755 diff --git a/etc/functions/salias b/etc/functions/salias old mode 100644 new mode 100755 diff --git a/etc/functions/world-readable b/etc/functions/world-readable old mode 100644 new mode 100755 diff --git a/etc/functions/xexport b/etc/functions/xexport old mode 100644 new mode 100755 diff --git a/etc/functions/xsource b/etc/functions/xsource old mode 100644 new mode 100755 diff --git a/etc/functions/youtube-watch b/etc/functions/youtube-watch old mode 100644 new mode 100755 -- cgit v1.2.3