Skip to content

Commit

Permalink
Bugfix: keep exports in cd until the last second.
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Feb 28, 2011
1 parent b00382b commit 7476e81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 3 additions & 1 deletion scripts/cd
Expand Up @@ -13,7 +13,7 @@ if [[ ${rvm_project_rvmrc:-1} -ne 0 ]] ; then
true ${rvm_scripts_path:="$rvm_path/scripts"}
source "$rvm_scripts_path/initialize"
source "$rvm_scripts_path/hook"

__rvm_unset_exports
}

autoload is-at-least
Expand All @@ -35,6 +35,7 @@ if [[ ${rvm_project_rvmrc:-1} -ne 0 ]] ; then

__rvm_project_rvmrc
__rvm_after_cd
__rvm_unset_exports

return $result
}
Expand All @@ -54,6 +55,7 @@ if [[ ${rvm_project_rvmrc:-1} -ne 0 ]] ; then
__rvm_project_rvmrc
rvm_hook="after_cd"
source "$rvm_scripts_path/hook"
__rvm_unset_exports

return $result
}
Expand Down
4 changes: 0 additions & 4 deletions scripts/functions/rvmrc
Expand Up @@ -235,8 +235,6 @@ __rvm_project_rvmrc()

unset rvm_rvmrc_cwd rvm_previous_environment

__rvm_unset_exports

fi

break
Expand All @@ -257,8 +255,6 @@ __rvm_project_rvmrc()

rvm_rvmrc_cwd="$cwd"

__rvm_unset_exports

source "$cwd/.rvmrc"

return 0
Expand Down

0 comments on commit 7476e81

Please sign in to comment.