Skip to content

Instantly share code, notes, and snippets.

@Sutto
Forked from jacquescrocker/gist:480247
Created July 18, 2010 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Sutto/480257 to your computer and use it in GitHub Desktop.
Save Sutto/480257 to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
source ~/.rvm/scripts/rvm
! command -v ruby >/dev/null 2>&1 || command -v ruby | grep -v rvm >/dev/null
echo "Result = $?"
echo "<pre>"
echo "rvm_path = '$rvm_path'"
echo "$rvm_environments_path"
echo "---"
rvm alias list
echo "--"
echo "Before: $(rvm tools identifier)"
rvm default
echo "After: $(rvm tools identifier)"
echo "</pre>"
__rvm_load_rvmrc
exec ruby "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment