Laptop is a shell script that turns your Mac OS X laptop into an awesome development machine.
Shell
Pull request Compare This branch is 2 commits ahead, 251 commits behind thoughtbot:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
heroku
mac
ruby

README.md

Laptop

Laptop is a script to set up your Max OS X laptop as a Rails development machine.

Install

Before you run this script, you need compilers like GCC, LLVM, and Clang.

*NOTE from rargulati: If you haven't installed X11 (window system) as part of your normal 10.5/10.6 installation, install it from the OS disk. Installation instructions are available online. IF, like me, you do not have the disk, it's easier to download and install all 3 of Xcode, Xquartz, and the gcc tools so that they will play nice.

Get them via OS X GCC Installer if you're on Snow Leopard (OS X 10.6) or Command Line Tools for XCode if you're on Lion (OS X 10.7).

Run the script:

bash < <(curl -s https://raw.github.com/thoughtbot/laptop/master/mac)

What it sets up

*NOTE: this is a fork of the original. Where the original preferred rvm, I've decided to go with rbenv + ruby_build. Some pieces of this installation still do not work for all builds (bash v zsh, imagemagick is not playing nice; will fix soon)

  • SSH public key (for authenticating with services like Github and Heroku)
  • Homebrew (for managing operating system libraries)
  • Qt (used by Capybara Webkit for headless JavaScript testing)
  • Ack (for finding things in files)
  • Tmux (for saving project state and switching between projects)
  • Postgres (for storing relational data)
  • Redis (for storing key-value data)
  • ImageMagick (for cropping and resizing images)
  • Ruby Build and RBenv (for managing ruby environments)
  • Ruby language (for writing general-purpose code)
  • Bundler gem (for managing Ruby libraries)
  • Rails gem (for writing web applications)
  • Heroku gem (for interacting with the Heroku API)
  • Taps gem (for pushing and pulling SQL databases between environments)
  • Postgres gem (for making Ruby talk to SQL databases)
  • Foreman gem (for serving your Rails app locally)
  • Git Remote Branch gem (for faster git branch creation and deletion)
  • Heroku accounts plugin (for using multiple Heroku accounts like a client's account)
  • Heroku config plugin (for pulling config variables locally to be used as ENV variables)

It should take about 30 minutes for everything to install, depending on your machine.