2013-03-21 00:07:56 -07:00
|
|
|
|
#!/bin/zsh
|
2013-03-03 05:48:43 -08:00
|
|
|
|
|
2013-03-21 19:26:04 -07:00
|
|
|
|
if ! command-exists brew; then
|
|
|
|
|
echo "==> Homebrew: Installing"
|
2013-03-21 00:07:56 -07:00
|
|
|
|
|
2013-03-16 21:16:00 -07:00
|
|
|
|
# http://mxcl.github.com/homebrew/
|
2013-03-21 00:07:56 -07:00
|
|
|
|
ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go) | indent
|
2013-03-21 09:50:16 -07:00
|
|
|
|
FORCE=1
|
|
|
|
|
elif [ "$1" = "--force" ]; then
|
|
|
|
|
FORCE=1
|
|
|
|
|
fi
|
2013-03-21 00:07:56 -07:00
|
|
|
|
|
2013-03-21 19:26:04 -07:00
|
|
|
|
echo "==> Homebrew: Updating"
|
|
|
|
|
# Make sure we’re using the latest Homebrew
|
|
|
|
|
brew update
|
|
|
|
|
|
2013-03-21 09:50:16 -07:00
|
|
|
|
if [ $FORCE ]; then
|
2013-03-21 19:26:04 -07:00
|
|
|
|
echo "==> Homebrew: Installing essential brews"
|
|
|
|
|
|
|
|
|
|
# Install GNU core utilities (those that come with OS X are outdated)
|
|
|
|
|
brew install coreutils
|
|
|
|
|
# echo "Don’t forget to add $(brew --prefix coreutils)/libexec/gnubin to \$PATH."
|
|
|
|
|
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
|
|
|
|
|
brew install findutils
|
|
|
|
|
# Install Bash 4
|
|
|
|
|
brew install bash
|
|
|
|
|
|
|
|
|
|
# Install wget with IRI support
|
|
|
|
|
brew install wget --enable-iri
|
|
|
|
|
|
|
|
|
|
# Install more recent versions of some OS X tools
|
|
|
|
|
brew tap homebrew/dupes
|
|
|
|
|
brew install homebrew/dupes/grep
|
|
|
|
|
brew tap josegonzalez/homebrew-php
|
|
|
|
|
|
|
|
|
|
# Install everything else
|
|
|
|
|
brew install ack git rename tree python node nginx memcached ctags macvim
|
|
|
|
|
brew install php54 --with-fpm --with-imap --with-mysql --with-pgsql --without-apache
|
|
|
|
|
brew install php54-imagick php54-mcrypt php54-xdebug readline
|
2013-03-21 00:07:56 -07:00
|
|
|
|
else
|
2013-03-21 19:26:04 -07:00
|
|
|
|
echo "==> Homebrew: Upgrading"
|
|
|
|
|
# Upgrade any already-installed formulae
|
|
|
|
|
brew upgrade
|
2013-03-16 21:28:28 -07:00
|
|
|
|
fi
|
2013-03-03 05:48:43 -08:00
|
|
|
|
|
2013-03-21 19:26:04 -07:00
|
|
|
|
echo "==> Homebrew: Cleaning up"
|
2013-03-03 05:48:43 -08:00
|
|
|
|
# Remove outdated versions from the cellar
|
2013-03-21 19:26:04 -07:00
|
|
|
|
brew cleanup
|
2013-03-16 21:16:00 -07:00
|
|
|
|
|
2013-03-21 19:26:04 -07:00
|
|
|
|
echo "==> Homebrew: DONE!"
|