]> err.no Git - dotfiles/commitdiff
Autoload personal functions
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Tue, 4 Oct 2011 11:18:45 +0000 (11:18 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Tue, 4 Oct 2011 11:18:45 +0000 (11:18 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@1486 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

zshrc

diff --git a/zshrc b/zshrc
index 985c502d6cb38e1995a67c7a5b466fbbf0d39e8a..64c00dd23a9beff9b96900a362093a5321f08f7e 100644 (file)
--- a/zshrc
+++ b/zshrc
@@ -154,6 +154,17 @@ function chpwd_profiles() {
 
 chpwd_functions=( ${chpwd_functions} chpwd_profiles )
 
+fpath=( "$HOME/.zshfunc" "$fpath[@]" )
+export FPATH
+# Only unique entries please.
+typeset -U fpath
+
+for paths in "$fpath[@]"
+  do
+    autoload -U "$paths"/*(N:t) >/dev/null
+done
+unset paths
+
 # Don't beep.  Ever.
 setopt -B