Browse Source

Adds sh-shell subcommand to unset RBENV_VERSION

pull/360/head^2
Timothy King 15 years ago
parent
commit
555472210b
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      libexec/rbenv-sh-shell

+ 8
- 1
libexec/rbenv-sh-shell View File

@ -12,5 +12,12 @@ version=$1
if [ -d "$HOME/.rbenv/versions/$version" ]; then
echo "export RBENV_VERSION=$version"
else
echo "rbenv: version \`$version' is not installed" >&2
case $version in
default|reset)
echo "unset RBENV_VERSION"
;;
*)
echo "rbenv: version \`$version' is not installed" >&2
exit 1
esac
fi

Loading…
Cancel
Save