Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[#17] Install Homebrew using Ruby 1.9.2

Some users are reporting that they've removed /usr/bin/ruby on their
machine due to other circumstances.

So, install Ruby before Homebrew, then use the Ruby we know we have.
  • Loading branch information...
commit cf2bef1fa9367e62e2d66a3d9419148cd5ebce30 1 parent ff56243
@croaky croaky authored
Showing with 10 additions and 9 deletions.
  1. +10 −9 mac
View
19 mac
@@ -7,8 +7,17 @@ echo "Copying public key to clipboard. Paste it into your Github account ..."
[[ -f ~/.ssh/id_rsa.pub ]] && cat ~/.ssh/id_rsa.pub | pbcopy
open https://github.com/account/ssh
+echo "Installing RVM (Ruby Version Manager) ..."
+ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
+ echo "
+# RVM
+[[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm'" >> ~/.zshrc
+ source ~/.zshrc
+
+zsh < <(curl -s https://raw.github.com/thoughtbot/laptop/master/ruby)
+
echo "Installing Homebrew, a good OS X package manager ..."
- /usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
+ ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
brew update
echo "Put Homebrew location earlier in PATH ..."
@@ -32,12 +41,4 @@ echo "Installing ImageMagick, good for cropping and re-sizing images ..."
echo "Installing QT, used by Capybara Webkit for headless Javascript integration testing ..."
brew install qt
-echo "Installing RVM (Ruby Version Manager) ..."
- bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
- echo "
-# RVM
-[[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm'" >> ~/.zshrc
- source ~/.zshrc
-
-zsh < <(curl -s https://raw.github.com/thoughtbot/laptop/master/ruby)
zsh < <(curl -s https://raw.github.com/thoughtbot/laptop/master/heroku)
Please sign in to comment.
Something went wrong with that request. Please try again.