Created
September 12, 2011 21:17
-
-
Save ggamel/1212463 to your computer and use it in GitHub Desktop.
New Machine Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Usage: bash < <(curl -s https://raw.github.com/gist/1212463/install.sh) | |
if [ ! -d "/Applications/Xcode.app" ]; then | |
echo "Please install Xcode first. Exiting." | |
exit 1 | |
fi | |
# Have sudo ask us for our password before we kick everything off so we can walk away. | |
sudo echo "Here we go..." | |
echo "Installing Homebrew..." | |
ruby -e "$(curl -fsSLk https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)" | |
brew install git | |
echo "Installing rbenv and ruby-build..." | |
brew install rbenv | |
brew install ruby-build | |
echo "Installing Ruby 1.9.3-p125" | |
rbenv install 1.9.3-p125 | |
rbenv rehash | |
rbenv global 1.9.3-p125 | |
echo "Installing Bundler" | |
gem install bundler --pre | |
rbenv rehash | |
echo "Installing ZSH and other Homebrew packages..." | |
brew install ack | |
brew install autoconf | |
brew install cmake | |
brew install coreutils | |
brew install ctags | |
brew install gawk | |
brew install gdbm | |
brew install git | |
brew install git-flow | |
brew install grc | |
brew install hub | |
brew install iperf | |
brew install macvim | |
brew install memcached | |
brew install mysql | |
brew install nginx | |
brew install ngrep | |
brew install node | |
brew install pcre | |
brew install pidof | |
brew install readline | |
brew install redis | |
brew install todo-txt | |
brew install tree | |
brew install wget | |
brew install xz | |
brew install zsh | |
unset TMPDIR | |
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp | |
echo "Installing dotfiles..." | |
/usr/local/bin/git clone git://github.com/ggamel/dotfiles.git ~/.dotfiles | |
(cd ~/.dotfiles && rake install) | |
sudo chsh -s /usr/local/bin/zsh $(whoami) | |
echo "Installing RubyGems..." | |
gem update --system | |
gem install actionmailer | |
gem install actionpack | |
gem install activemodel | |
gem install activerecord | |
gem install activeresource | |
gem install activesupport | |
gem install albino | |
gem install arel | |
gem install bcrypt-ruby | |
gem install blankslate | |
gem install boom | |
gem install builder | |
gem install bundler | |
gem install capistrano | |
gem install chunky_png | |
gem install classifier | |
gem install cloudapp_api | |
gem install compass | |
gem install directory_watcher | |
gem install erubis | |
gem install fast-stemmer | |
gem install ffi | |
gem install fssm | |
gem install haml | |
gem install highline | |
gem install hike | |
gem install httparty | |
gem install i18n | |
gem install jekyll | |
gem install journey | |
gem install json | |
gem install kramdown | |
gem install liquid | |
gem install mail | |
gem install maruku | |
gem install mime-types | |
gem install multi_json | |
gem install multi_xml | |
gem install net-scp | |
gem install net-sftp | |
gem install net-ssh | |
gem install net-ssh-gateway | |
gem install polyglot | |
gem install posix-spawn | |
gem install pygments.rb | |
gem install rack | |
gem install rack-cache | |
gem install rack-mount | |
gem install rack-protection | |
gem install rack-ssl | |
gem install rack-test | |
gem install rails | |
gem install railties | |
gem install rake | |
gem install rb-fsevent | |
gem install rdiscount | |
gem install rdoc | |
gem install RedCloth | |
gem install rubypants | |
gem install rubypython | |
gem install sass | |
gem install sinatra | |
gem install sprockets | |
gem install spruz | |
gem install stringex | |
gem install syntax | |
gem install thor | |
gem install tilt | |
gem install treetop | |
gem install tzinfo | |
echo "Installing Pow..." | |
curl get.pow.cx | sh | |
echo "Installing iTerm..." | |
curl -s http://iterm2.googlecode.com/files/iTerm2-1_0_0_20120203.zip > /tmp/iterm.zip | |
unzip /tmp/iterm.zip | |
sudo mv iTerm.app /Applications | |
echo "Done. Enjoy it." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment