Skip to content

Commit

Permalink
clean last zsh chpwd function traces, fix #1153
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed Oct 3, 2012
1 parent 432b231 commit e65b266
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/functions/installer
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ install_rvm_hooks()

setup_configuration_files()
{
builtin pushd "$rvm_path" >/dev/null
chpwd_functions="" builtin pushd "$rvm_path" >/dev/null

if [[ -f config/user ]]
then
Expand Down Expand Up @@ -341,7 +341,7 @@ setup_configuration_files()
GREP_OPTIONS="" \grep '^_' user/rvmrcs > user/rvmrcs.new || true
mv user/rvmrcs.new user/rvmrcs

builtin popd >/dev/null
chpwd_functions="" builtin popd >/dev/null
}

ensure_scripts_are_executable()
Expand Down
4 changes: 2 additions & 2 deletions scripts/functions/manage/base
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ __rvm_apply_patches()
source_directory="${1:-"${rvm_src_path}/$rvm_ruby_string"}"
(( $# == 0 )) || shift

builtin pushd "$source_directory" >/dev/null
chpwd_functions="" builtin pushd "$source_directory" >/dev/null
case "${1:-all}" in
(all) __rvm_current_patch_names patches ;;
(*) patches=( "$@" ) ;;
Expand Down Expand Up @@ -71,7 +71,7 @@ __rvm_apply_patches()
result=1
fi
done
builtin popd >/dev/null
chpwd_functions="" builtin popd >/dev/null
return ${result:-0}
}

Expand Down

0 comments on commit e65b266

Please sign in to comment.