Adds sh-shell subcommand to unset RBENV_VERSION

This commit is contained in:
Timothy King 2011-09-09 08:22:03 -04:00
parent 39497042bc
commit 555472210b

View file

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