Skip to content

Instantly share code, notes, and snippets.

@iande
Created June 5, 2011 18:15
Show Gist options
  • Save iande/1009239 to your computer and use it in GitHub Desktop.
Save iande/1009239 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if [[ -s "/Users/chaos/.rvm/environments/ruby-1.9.2-p180@global" ]]
then
source "/Users/chaos/.rvm/environments/ruby-1.9.2-p180@global"
exec ruby "$@"
else
echo "ERROR: Missing RVM environment file: '/Users/chaos/.rvm/environments/ruby-1.9.2-p180@global'" >&2
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment