From e0fb20052fafef0fcdadd988c81f8a3cc9df2f8e Mon Sep 17 00:00:00 2001 From: tfheen Date: Tue, 4 Oct 2011 11:18:45 +0000 Subject: [PATCH] Autoload personal functions git-svn-id: file:///svn/tfheen/trunk/dotfiles@1486 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- zshrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/zshrc b/zshrc index 985c502..64c00dd 100644 --- 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 -- 2.39.5