-
-
Save steve9001/4399545 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env zsh | |
# Install the following first: | |
# | |
# - chrome | |
# - iterm2 | |
# - connect.apple.com command-line: XCode tools | |
successfully() { | |
$* || (echo "failed" 1>&2 && exit 1) | |
} | |
echo "Installing homebrew" | |
successfully ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)" | |
successfully brew doctor | |
successfully brew update | |
successfully echo "export PATH=\$HOME/bin:/usr/local/bin:\$PATH" >> ~/.zshrc | |
echo "Update/install zsh" | |
successfully brew install zsh | |
successfully sudo echo "/usr/local/bin/zsh" >> /etc/shells | |
successfully sudo mv /etc/zshenv /etc/zprofile | |
successfully chsh -s /usr/local/bin/zsh $USER | |
# exec /usr/local/bin/zsh -l | |
echo "Update/install git" | |
successfully brew install git | |
echo "Update/install vim" | |
successfully brew install mercurial | |
successfully brew install vim | |
echo "Installing Postgres, a good open source relational database ..." | |
successfully brew install postgres --no-python | |
successfully initdb /usr/local/var/postgres -E utf8 | |
echo "Installing Redis, a good key-value database ..." | |
successfully brew install redis | |
echo "Installing ack, for searching the contents of files ..." | |
successfully brew install ack | |
echo "Installing ctags, for indexing files for vim tab completion of methods, classes, variables ..." | |
successfully brew install ctags | |
echo "Installing tmux, for saving project state and switching between projects ..." | |
successfully brew install tmux | |
echo "Installing reattach-to-user-namespace, for copy-paste and RubyMotion compatibility with tmux ..." | |
successfully brew install reattach-to-user-namespace | |
echo "Installing ImageMagick, for cropping and re-sizing images ..." | |
successfully brew install imagemagick | |
echo "Installing QT, used by Capybara Webkit for headless Javascript integration testing ..." | |
successfully brew install qt | |
echo "Installing Phantomjs, also used for headless JS testing..." | |
successfully brew install phantomjs | |
echo "Installing watch, used to execute a program periodically and show the output ..." | |
successfully brew install watch | |
echo "Installing rbenv" | |
successfully brew install rbenv | |
successfully brew install ruby-build | |
echo '# enable shims and autocompletion add to your profile: | |
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.zshrc | |
echo "Install homesick" | |
successfully gem install homesick | |
echo "Install Vundle" | |
successfully git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle | |
echo "Installing standalone Heroku CLI client. You'll need administrative rights on your machine ..." | |
successfully curl -s https://toolbelt.heroku.com/install.sh | sh | |
echo "Installing the heroku-config plugin for pulling config variables locally to be used as ENV variables ..." | |
successfully /usr/local/heroku/bin/heroku plugins:install git://github.com/ddollar/heroku-config.git | |
echo "Installing node" | |
successfully brew install node |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment