Skip to content

Instantly share code, notes, and snippets.

@bmatheny
Forked from jasoncodes/gist:1223731
Last active December 14, 2015 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmatheny/5060520 to your computer and use it in GitHub Desktop.
Save bmatheny/5060520 to your computer and use it in GitHub Desktop.
# Run this script to install ruby 1.9.2-p290 under rbenv
VERSION=1.9.2-p290
brew update
brew install rbenv ruby-build rbenv-vars readline
if [ -n "${ZSH_VERSION:-}" ]; then
echo 'eval "$(rbenv init - --no-rehash)"' >> ~/.zshrc
else
echo 'eval "$(rbenv init - --no-rehash)"' >> ~/.bash_profile
fi
eval "$(rbenv init - --no-rehash)" # load rbenv in the current shell
CONFIGURE_OPTS="--disable-install-doc --with-readline-dir=$(brew --prefix readline)" rbenv install $VERSION
rbenv global $VERSION
gem install --no-ri --no-rdoc bundler rbenv-rehash git-up hitch gem-browse cheat awesome_print pry yard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment