Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A shell script which turns your OS X laptop into an awesome web development machine.
Shell

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
mac
ruby
ubuntu

README.md

Laptop

Laptop is a set of scripts to get your laptop set up as a development machine.

Mac OS X

First, install XCode. ($4.99, requires OS X 10.6.6 or higher)

Set up your SSH key if you haven't yet:

ssh-keygen -t rsa

Then, run this one-liner:

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

Then:

echo '[[ -s "/Users/`whoami`/.rvm/scripts/rvm" ]] && source "/Users/`whoami`/.rvm/scripts/rvm"' >> ~/.bash_profile
source ~/.bash_profile

Install the latest version of Ruby and some useful gems:

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

Ubuntu

First, install Ubuntu.

Set up your SSH key if you haven't yet:

ssh-keygen -t rsa

Then, run this one-liner:

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

Follow the on-screen instructions to load RVM in your shell, and make sure you can run the rvm command.

Install the latest version of Ruby and some useful gems:

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

Use gEdit for your text editor. You can customize it with these instructions.

What it sets up

  • SSH public keys (for authenticating with services like Github and Heroku)
  • Homebrew or apt-get (for managing operating system libraries)
  • Ack (for finding things in files)
  • Postgres (for storing relational data)
  • Redis (for storing key-value data)
  • ImageMagick (for cropping and resizing images)
  • RVM (for managing versions of the Ruby programming language)
  • Ruby 1.9.2 stable (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)

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

Something went wrong with that request. Please try again.