-
-
Save 8bitDesigner/7570000 to your computer and use it in GitHub Desktop.
Everything you need to use RVM _sanely_.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if [ -f ".rvmrc" ]; then | |
| source ".rvmrc" | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| foo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if [ -f "$rvm_path/scripts/rvm" ]; then | |
| source "$rvm_path/scripts/rvm" | |
| VERSION_FROM_GEMFILE=$(perl -ne '/^ruby .([0-9\.]+).$/ && print "$1"' Gemfile) | |
| if [ -f ".ruby-version" ]; then | |
| rvm use `cat .ruby-version` | |
| fi | |
| if [[ -n $VERSION_FROM_GEMFILE ]]; then | |
| rvm use $VERSION_FROM_GEMFILE | |
| fi | |
| if [ -f ".ruby-gemset" ]; then | |
| rvm gemset use --create `cat .ruby-gemset` | |
| fi | |
| fi |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
An
rvm-setupscript from @aharpole