Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (33 sloc) 1.49 KB
#!/usr/bin/env zsh
echo "Checking for SSH key, generating one if it doesn't exist ..."
[[ -f ~/.ssh/id_rsa.pub ]] || ssh-keygen -t rsa
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) ..."
curl -sSL https://get.rvm.io | bash
echo "
# RVM
[[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm'" >> ~/.zshrc
source ~/.zshrc
echo "Installing Homebrew, a good OS X package manager ..."
ruby <(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)
brew update
echo "Put Homebrew location earlier in PATH ..."
echo "
# recommended by brew doctor
export PATH='/usr/local/bin:$PATH'" >> ~/.zshrc
source ~/.zshrc
zsh < <(curl -s https://raw.github.com/jyeung001/laptop/master/ruby)
# Install pg manually
echo "Installing Postgres, a good open source relational database ..."
brew install postgres --no-python
echo "Installing ack, a good way to search through files ..."
brew install ack
echo "Installing tmux, a good way to save project state and switch between projects ..."
brew install tmux
echo "Installing ImageMagick, good for cropping and re-sizing images ..."
brew install imagemagick
echo "Installing QT, used by Capybara Webkit for headless Javascript integration testing ..."
brew install qt
zsh < <(curl -s https://raw.github.com/jyeung001/laptop/master/heroku)