Create a gist now

Instantly share code, notes, and snippets.

Ruby + Rails setup
# ------- NOTE: RUN THE SCRIPT FIRST -------
# notes:
# - --with-gcc=clang required for OSX Lion
# - readline required to fix forward-delete in irb (see
rvm install $RUBY_HEAD --with-gcc=clang --with-readline-dir=`brew --prefix readline`
# install useful gems for use with IRB
rvm $RUBY_HEAD@global
gem install awesome_print builder bundler cheat compass pg powder rack rake thor wirble
# install Rails, and set this ruby+gemset as the RVM default
rvm --default --create $RUBY_HEAD@rails
gem install rails
# for more info, see:
# -
# -
# setup .gemrc for use with RVM (Ruby Version Manager)
echo -e '---
:verbose: true
:bulk_threshold: 1000
gem: --no-ri --no-rdoc
:benchmark: false
:update_sources: true
:backtrace: false' > ~/.gemrc
# install RVM
bash -s stable < <(curl -s )
echo -e '
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.' >> ~/.bashrc
# update RVM
rvm get head
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment