=== modified file 'zsh-functions/zsv_config' --- zsh-functions/zsv_config 2014-06-29 17:04:59 +0000 +++ zsh-functions/zsv_config 2014-06-24 14:08:45 +0000 @@ -25,7 +25,7 @@ : ${zsv_svd:=/etc/sv.d} # autoload all zsv_ functions -local -a func_files hook_funcs +local -a func_files local f func_files=( $^fpath/zsv_*(N) ) @@ -35,12 +35,7 @@ continue fi autoload -Uz ${f:t} - [[ $f:t == zsv_hook_* ]] && hook_funcs+=( $f:t ) -done - -# run all zsv_hook_* functions (after all zsv_* functions were autoloaded) -for f in $hook_funcs; do - $f + [[ $f:t == zsv_hook_* ]] && $f:t done if ! (($+commands[zsv.run])); then