From 86362408f106f99e9da382a9d5abe26ca5256d9f Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Tue, 2 Aug 2011 23:11:10 -0500 Subject: [PATCH] rbenv-path -> rbenv-prefix --- libexec/{rbenv-path => rbenv-prefix} | 6 +++--- libexec/rbenv-set-default | 2 +- libexec/rbenv-set-local | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename libexec/{rbenv-path => rbenv-prefix} (62%) 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