]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/rc
Don't try to autoload directories in ~/.zsh/functions.
[config/dotfiles.git] / 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