diff --git a/libexec/rbenv-global b/libexec/rbenv-global index 837a7b4f..134c26b9 100755 --- a/libexec/rbenv-global +++ b/libexec/rbenv-global @@ -2,7 +2,7 @@ set -e RBENV_VERSION="$1" -RBENV_VERSION_FILE="${RBENV_HOME}/global" +RBENV_VERSION_FILE="${RBENV_ROOT}/global" if [ -n "$RBENV_VERSION" ]; then rbenv-version-file-write "$RBENV_VERSION_FILE" "$RBENV_VERSION"