瀏覽代碼

Adds sh-shell subcommand to unset RBENV_VERSION

pull/360/head^2
Timothy King 15 年之前
父節點
當前提交
555472210b
共有 1 個檔案被更改,包括 8 行新增1 行删除
  1. +8
    -1
      libexec/rbenv-sh-shell

+ 8
- 1
libexec/rbenv-sh-shell 查看文件

@ -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…
取消
儲存