diff --git a/libexec/rbenv-path b/libexec/rbenv-prefix similarity index 62% rename from libexec/rbenv-path rename to libexec/rbenv-prefix index a60c806b..f2823b31 100755 --- a/libexec/rbenv-path +++ b/libexec/rbenv-prefix @@ -6,10 +6,10 @@ elif [ -z "$RBENV_VERSION" ]; then RBENV_VERSION="$(rbenv-version)" fi -RBENV_VERSION_PATH="${HOME}/.rbenv/versions/${RBENV_VERSION}" -if [ ! -d "$RBENV_VERSION_PATH" ]; then +RBENV_PREFIX_PATH="${HOME}/.rbenv/versions/${RBENV_VERSION}" +if [ ! -d "$RBENV_PREFIX_PATH" ]; then echo "rbenv: version \`${RBENV_VERSION}' not installed" >&2 exit 1 fi -echo "$RBENV_VERSION_PATH" +echo "$RBENV_PREFIX_PATH" diff --git a/libexec/rbenv-set-default b/libexec/rbenv-set-default index a1922a76..e1d65e2d 100755 --- a/libexec/rbenv-set-default +++ b/libexec/rbenv-set-default @@ -7,6 +7,6 @@ if [ -z "$RBENV_VERSION" ]; then fi # Make sure the specified version is installed -rbenv-path "$RBENV_VERSION" >/dev/null +rbenv-prefix "$RBENV_VERSION" >/dev/null echo "$RBENV_VERSION" > "${HOME}/.rbenv/default" diff --git a/libexec/rbenv-set-local b/libexec/rbenv-set-local index 38406232..a051c709 100755 --- a/libexec/rbenv-set-local +++ b/libexec/rbenv-set-local @@ -7,6 +7,6 @@ if [ -z "$RBENV_VERSION" ]; then fi # Make sure the specified version is installed -rbenv-path "$RBENV_VERSION" >/dev/null +rbenv-prefix "$RBENV_VERSION" >/dev/null echo "$RBENV_VERSION" > .rbenv-version