Created
November 17, 2010 18:02
-
-
Save zenom/703740 to your computer and use it in GitHub Desktop.
rvm.sh
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
#!/bin/bash | |
CHANGE=0; | |
if [ $RUBY_VERSION != $ORIG_RUBY ]; then | |
ORIG_RUBY=$RUBY_VERSION; | |
CHANGE=1; | |
fi | |
if [ "$ORIG_GEMSET" != "$rvm_gemset_name" ]; then | |
ORIG_GEMSET=$rvm_gemset_name; | |
CHANGE=1; | |
fi | |
if [ $CHANGE == 1 ]; then | |
echo "You are now using: $ORIG_RUBY@$ORIG_GEMSET"; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment