Skip to content

Commit

Permalink
trying to get this down to a one-liner
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Croak committed Aug 7, 2011
1 parent d94088f commit ce0b76b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 21 deletions.
19 changes: 2 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,21 @@ Mac OS X

First, install [XCode](http://itunes.apple.com/us/app/xcode/id422352214?mt=12&ls=1). ($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)

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](http://www.ubuntu.com/download).

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)

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](http://blog.sudobits.com/2011/04/02/textmate-for-ubuntu-linux/).
If you're setting up Ubuntu for one of our workshops, we recommend you also install gEdit for your text editor.
You can [customize it with these instructions](http://blog.sudobits.com/2011/04/02/textmate-for-ubuntu-linux/).

What it sets up
---------------
Expand Down
4 changes: 2 additions & 2 deletions mac
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/usr/bin/env bash

echo "Checking for SSH key, generating one if it exists ..."
[[ -f ~/.ssh/id_rsa.pub || -f ~/.ssh/id_dsa.pub ]] || ssh-keygen -t rsa
[[ -f ~/.ssh/id_rsa.pub ]] || ssh-keygen -t rsa

echo "Copying public key to clipboard. Paste it into your Github account ..."
[[ -f ~/.ssh/id_dsa.pub ]] && cat ~/.ssh/id_dsa.pub | pbcopy
[[ -f ~/.ssh/id_rsa.pub ]] && cat ~/.ssh/id_rsa.pub | pbcopy
open https://github.com/account/ssh

Expand All @@ -29,3 +28,4 @@ echo "Installing RVM (Ruby Version Manager) ..."
echo "\n# RVM\n[[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm'" >> ~/.zshrc
source ~/.zshrc

bash < <(curl -s https://raw.github.com/thoughtbot/laptop/master/ruby)
5 changes: 3 additions & 2 deletions ubuntu
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/usr/bin/env bash

echo "Checking for SSH key, generating one if it exists ..."
[[ -f ~/.ssh/id_rsa.pub || -f ~/.ssh/id_dsa.pub ]] || ssh-keygen -t rsa
[[ -f ~/.ssh/id_rsa.pub ]] || ssh-keygen -t rsa

echo "Copying public key to clipboard. Paste it into your Github account ..."
[[ -f ~/.ssh/id_dsa.pub ]] && cat ~/.ssh/id_dsa.pub | xclip
[[ -f ~/.ssh/id_rsa.pub ]] && cat ~/.ssh/id_rsa.pub | xclip
open https://github.com/account/ssh

Expand All @@ -28,3 +27,5 @@ echo "Installing ImageMagick, good for cropping and re-sizing images ..."

echo "Installing RVM (Ruby Version Manager) ..."
curl -s https://rvm.beginrescueend.com/install/rvm -o rvm-installer ; chmod +x rvm-installer ; ./rvm-installer --version latest

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

0 comments on commit ce0b76b

Please sign in to comment.