Skip to content

Instantly share code, notes, and snippets.

@yyuu
Created March 5, 2013 13:57
Show Gist options
  • Save yyuu/5090468 to your computer and use it in GitHub Desktop.
Save yyuu/5090468 to your computer and use it in GitHub Desktop.
acts like rvm-shell but using rbenv
#!/bin/bash -e
export RBENV_ROOT="${RBENV_ROOT:-$HOME/.rbenv}"
export PATH="${RBENV_ROOT}/bin:${PATH}"
eval "$(rbenv init -)"
exec "bash" "$@"
# vim:set ft=sh :
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment