Skip to content

Instantly share code, notes, and snippets.

@vitobotta
Created August 9, 2012 10:28
Show Gist options
  • Save vitobotta/3303072 to your computer and use it in GitHub Desktop.
Save vitobotta/3303072 to your computer and use it in GitHub Desktop.
.rvmrc template
if (uname -a | grep '12.0.0 Darwin' >/dev/null); then
CC=/usr/bin/gcc-4.2 CPPFLAGS=-I/opt/X11/include rvm --install --create --disable-tcl --disable-tk use <ruby version>@<gemset name>
else
rvm --install --create --disable-tcl --disable-tk use <ruby version>@<gemset name>
fi
if ! which bundle >/dev/null; then
gem install bundler --pre --no-ri --no-rdoc && bundle install
fi
if ! bundle check >/dev/null; then
bundle install
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment