scripts/cd in rvm-1.1.0 vs scripts/cd in rvm-1.1.1

- old
+ new

@@ -4,16 +4,24 @@ # To disable this fature, set export rvm_project_rvmrc=0 in $HOME/.rvmrc if [[ ${rvm_project_rvmrc:-1} -ne 0 ]] ; then if [[ -n "${ZSH_VERSION:-""}" ]] ; then + __rvm_after_cd() { + + rvm_hook="after_cd" + + source "$rvm_path/scripts/hook" + + } + autoload is-at-least if is-at-least 4.3.4 >/dev/null 2>&1; then # On zsh, use chpwd_functions - chpwd_functions=( "${chpwd_functions[@]}" __rvm_project_rvmrc ) + chpwd_functions=( "${chpwd_functions[@]}" __rvm_project_rvmrc __rvm_after_cd ) else cd() { @@ -21,10 +29,10 @@ local result=$? __rvm_project_rvmrc - rvm_hook="after_cd" ; source "$rvm_path/scripts/hook" + __rvm_after_cd return $result } fi