changeset 284:426917c07eb1

functionpath: fix af_reloadfuncs()
author Augie Fackler <durin42@gmail.com>
date Mon, 30 Jan 2012 12:56:49 -0600
parents 533bde18976e
children d77b2e253e99
files .shell.d/10.functionpath.zsh
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/.shell.d/10.functionpath.zsh
+++ b/.shell.d/10.functionpath.zsh
@@ -5,6 +5,8 @@ function af_reloadfuncs()
 {
   local f
   f=(~/.zfun/*(.))
-  unfunction $f:t 2> /dev/null
-  autoload -U $f:t
+  for comp in $f ; do
+    unfunction $f:t 2> /dev/null
+    autoload -U $f:t
+  done
 }