]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Don't try to autoload directories in ~/.zsh/functions.
authorSimon Ruderich <simon@ruderich.org>
Sun, 8 Feb 2009 15:49:47 +0000 (16:49 +0100)
committerSimon Ruderich <simon@ruderich.org>
Mon, 16 Feb 2009 15:34:43 +0000 (16:34 +0100)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index cbf880e5c5ae89f2a164bf723189997241dcb8be..6348432fcd39c3cd2523cb81634171e9ed503918 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -40,7 +40,7 @@ setopt ignoreeof
 fpath=(~/.zsh/functions $fpath)
 # Autoload my functions (except completion functions and hidden files). Thanks
 # to caphuso from the Zsh example files for this idea.
-autoload ${fpath[1]}/^_*(:t)
+autoload ${fpath[1]}/^_*(^/:t)
 
 # Autoload add-zsh-hook to add/remove zsh hook functions easily.
 autoload -Uz add-zsh-hook