Skip to content

Instantly share code, notes, and snippets.

@bkaney
Last active September 8, 2016 01:54
Show Gist options
  • Save bkaney/4321594 to your computer and use it in GitHub Desktop.
Save bkaney/4321594 to your computer and use it in GitHub Desktop.
Dev (mac) setup, influenced from https://github.com/thoughtbot/laptop/blob/master/mac
#!/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 -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
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 sh -c '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 mkdir -p ~/.vim/bundle
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
echo "Installing memcached"
successfully brew install memcached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment