You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
273 B

13 years ago
13 years ago
  1. #!/usr/bin/env bash -e
  2. RBENV_VERSION="$1"
  3. if [ -z "$RBENV_VERSION" ]; then
  4. echo "usage: rbenv set-default VERSION" >&2
  5. exit 1
  6. fi
  7. # Make sure the specified version is installed
  8. rbenv-prefix "$RBENV_VERSION" >/dev/null
  9. echo "$RBENV_VERSION" > "${HOME}/.rbenv/default"