Skip to content

Instantly share code, notes, and snippets.

@casualjim
Created June 2, 2011 14:02
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save casualjim/1004502 to your computer and use it in GitHub Desktop.
Save casualjim/1004502 to your computer and use it in GitHub Desktop.
baseline rvmrc file
export RUBYOPT="rubygems"
rvm_install_on_use_flag=1
if [ -z $(rvm gemset list | grep virtmachines) 2> /dev/null ]; then
rvm ruby-1.8.7
rvm gemset create virtmachines
fi
rvm ruby-1.8.7@virtmachines
if ! command -v vagrant ; then
[ ! $(command -v bundle) ] && gem install bundler
if [ ! -f ./Gemfile ]; then
bundle init
echo "gem \"vagrant\"" >> ./Gemfile
fi
bundle install
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment