# HG changeset patch # User Augie Fackler # Date 1327949809 21600 # Node ID 426917c07eb1b0aa95663ae6c914eabeb77c03cc # Parent 533bde18976e9af4c0653495d52a9878040d7ed3 functionpath: fix af_reloadfuncs() diff --git a/.shell.d/10.functionpath.zsh b/.shell.d/10.functionpath.zsh --- 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 }