Created
September 25, 2017 07:29
-
-
Save dainelmawer/72568ec91d25d05b72419083d3856131 to your computer and use it in GitHub Desktop.
Development Bash Script for MAC OS X using Homebrew
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 bash | |
# | |
# Notes: | |
# | |
# - Homebrew & Git require Xcode Command Line Tools, OS X should prompt you on first install. | |
# | |
echo "Starting Mac OS X Dev Setup..." | |
# Check for Homebrew, install if we don't have it | |
if test ! $(which brew); then | |
echo "Installing homebrew..." | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
# Update homebrew recipes | |
brew update | |
PACKAGES=( | |
git | |
imagemagick | |
node | |
npm | |
python | |
python3 | |
ssh-copy-id | |
tree | |
vim | |
wget | |
) | |
echo "Installing packages..." | |
brew install ${PACKAGES[@]} | |
echo "Cleaning up..." | |
brew cleanup | |
# Useful for installing vendor software. Its a pain to download and copy files to Applications | |
echo "Installing cask..." | |
brew install caskroom/cask/brew-cask | |
CASKS=( | |
firefox | |
google-chrome | |
google-drive | |
iterm2 | |
skype | |
slack | |
vagrant | |
virtualbox | |
vlc | |
phpstorm | |
zoomus | |
tunnelblick | |
sketch | |
atom | |
visual-studio-code | |
) | |
echo "Installing Homebrew Cask Applications..." | |
brew cask install ${CASKS[@]} | |
echo "Installing Python packages..." | |
PYTHON_PACKAGES=( | |
ipython | |
virtualenv | |
virtualenvwrapper | |
) | |
sudo pip install ${PYTHON_PACKAGES[@]} | |
echo "Installing Ruby gems" | |
RUBY_GEMS=( | |
bundler | |
filewatcher | |
cocoapods | |
) | |
sudo gem install ${RUBY_GEMS[@]} | |
# Install Google Fonts | |
curl https://raw.githubusercontent.com/qrpike/Web-Font-Load/master/install.sh | |
install.sh | |
echo "Finished with Mac OS X setup!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment