Permalink
Browse files

mac os x script

  • Loading branch information...
croaky committed May 1, 2011
0 parents commit aa0466fbe8bbb081d056bbfd8cfb65ddba192eb3
Showing with 60 additions and 0 deletions.
  1. +16 −0 README.md
  2. +44 −0 mac.rb
  3. 0 ubuntu.rb
@@ -0,0 +1,16 @@
+Laptop
+======
+
+Laptop is a set of scripts to get your laptop set up as a development machine.
+
+Mac OS X
+--------
+
+First, install XCode. It comes with your OS X CD or you can [download it](http://developer.apple.com/technologies/tools/xcode.html).
+
+ ruby -e "$(curl -fsSL https://github.com/thoughtbot/laptop/raw/master/mac.rb)"
+
+Ubuntu
+------
+
+Coming soon.
44 mac.rb
@@ -0,0 +1,44 @@
+puts "Installing RVM (Ruby Version Manager) ..."
+ `bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )`
+ `echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bash_profile`
+ `source ~/.bash_profile`
+
+puts "Installing Ruby 1.9 and making it the default Ruby ..."
+ `rvm install 1.9.2-p180`
+ `rvm use 1.9.2-p180 --default`
+
+puts "Installing Bundler for managing Ruby libraries ..."
+ `gem install bundler`
+
+puts "Installing Rails to write and run web applications ..."
+ `gem install rails`
+
+puts "Installing the Heroku gem to interact with the http://heroku.com API ..."
+ `gem install heroku`
+
+puts "Installing the Taps gem to push and pull SQL databases between development, staging, and production environments"
+ `gem install taps`
+
+puts "Installing Homebrew, a great OS X package manager ..."
+ `ruby -e "$(curl -fsSL https://gist.github.com/raw/323731/install_homebrew.rb)"`
+
+puts "Installing git for version control ..."
+ `brew git`
+
+puts "Installing Postgres, a great open source relational database ..."
+ `brew install postgres --no-python`
+
+puts "Installing Redis, a key-value database ..."
+ `brew install redis`
+
+puts "Installing ImageMagick, good for cropping and re-sizing images ..."
+ `brew install imagemagick`
+
+puts "Setting up SSH keys. Press enter at each prompt ..."
+ `ssh-keygen`
+
+puts "Copying public key to clipboard. Paste it into your Github account ..."
+ `cat ~/.ssh/id_rsa.pub | pbcopy`
+ sleep 3
+ `open https://github.com/account/ssh`
+
No changes.

0 comments on commit aa0466f

Please sign in to comment.