Skip to content

Instantly share code, notes, and snippets.

@huebs
Last active August 29, 2015 14:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huebs/10a80f807a22ac85ccb6 to your computer and use it in GitHub Desktop.
Save huebs/10a80f807a22ac85ccb6 to your computer and use it in GitHub Desktop.
This is the file to run on a clean install of Mac OS X to install a variety of development tools.
#!/bin/sh
################################################################################
##
## Title: Mac OS X Setup Script
## Description: This is the file to run on a clean install of Mac OS X to
## install a variety of development tools.
## Revison: 4
## Last Updated: Wednesday, October 22, 2014
## Author: Ben Huebscher <ben@hubtech.tv>
##
# Install Homebrew if not already installed
if [ ! -x /usr/local/bin/brew ] ; then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Tap Homebrew Kegs
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
# Install PHP 5.5
brew install php55
PHP_ROOT=$(brew --prefix homebrew/php/php55)
# Apply Pear Fixes
chmod -R ug+w ${PHP_ROOT}/lib/php
pear config-set php_ini /usr/local/etc/php/5.5/php.ini
# Install PHP Add-Ons
brew install php55-apcu
brew install php55-couchbase
brew install php55-dbase
brew install php55-http
brew install php55-imagick
brew install php55-mcrypt
brew install php55-mongo
brew install php55-oauth
brew install php55-ssh2
brew install libsvm # Dependency for php55-svm
brew install php55-svm
brew install php55-tidy
brew install php55-timezonedb
brew install php55-twig
brew install php55-uploadprogress
brew install php55-uuid
brew install php55-wbxml
brew install php55-xdebug
brew install php55-yaml
# PHP Development Tools
brew install php-build
brew install php-code-sniffer
brew install phpcpd
brew install phpdocumentor
brew install phploc
brew install phpunit
brew install composer
# Install PHING
pear config-set preferred_state alpha
pear channel-discover pear.phing.info
pear channel-discover bartlett.laurent-laville.org
pear channel-discover pear.phpunit.de
pear channel-discover pear.pdepend.org
pear channel-discover pear.phpmd.org
pear channel-discover pear.phpdoc.org
pear channel-discover pear.symfony.com
pear channel-discover pear.netpirates.net
pear install --alldeps phing/phing
# If PHING was installed successfully, symlink it into /usr/local/bin
if [ -x ${PHP_ROOT}/bin/phing ] ; then
ln -s ${PHP_ROOT}/bin/phing /usr/local/bin/phing
fi
# Install MySQL and PHPMyAdmin
brew install mysql
brew install phpmyadmin
# Install Other CLI Tools
brew install lftp
brew install markdown
brew install poppler
# Install Node
brew install node
# Web Development Tools
npm install -g grunt
npm install -g bower
npm install -g less
npm install -g coffee-script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment