Skip to content

Instantly share code, notes, and snippets.

@zenom
Created November 17, 2010 18:02
Show Gist options
  • Save zenom/703740 to your computer and use it in GitHub Desktop.
Save zenom/703740 to your computer and use it in GitHub Desktop.
rvm.sh
#!/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