Find file
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (44 sloc) 2.16 KB
#!/usr/bin/env bash
echo "Checking for SSH key, generating one if it doesn't exist..."
[[ -f ~/.ssh/ ]] || ssh-keygen -t rsa
echo "Downloading default dotfiles..."
mkdir -p ~/development
[[ -d ~/development/dotfiles ]] || git clone git:// ~/development/dotfiles
ruby ~/development/dotfiles/install.rb
echo "Copying public key to clipboard. Paste it into your Github account..."
[[ -f ~/.ssh/ ]] && cat ~/.ssh/ | pbcopy
echo "Installing Homebrew, a good OS X package manager ..."
/usr/bin/ruby -e "$(curl -fsSL"
brew update
echo "Installing Oh-My-Zsh, an awesome shell environment..."
[[ -d ~/.oh-my-zsh ]] || (curl -L | sh)
echo "Put Homebrew location earlier in PATH..."
echo "
# recommended by brew doctor
export PATH='/usr/local/bin:$PATH'" >> ~/.zshrc
source ~/.zshrc
echo "Installing Postgres, a good open source relational database..."
brew install postgres --no-python
echo "Installing MySQL, a not-so-good open source relational database ..."
brew install mysql
echo "Installing Redis, a good key-value database ..."
brew install redis
echo "Installing MongoDB, a good key-value database ..."
brew install mongodb
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
echo "Installing RVM (Ruby Version Manager) ..."
bash -s stable < <(curl -s
echo "
[[ -s '/Users/`whoami`/.rvm/scripts/rvm' ]] && source '/Users/`whoami`/.rvm/scripts/rvm'" >> ~/.zshrc
source ~/.zshrc
bash < <(curl -s
bash < <(curl -s