-
-
Save MrChrisRodriguez/46a33c3c66d7a5b0b87947d4b61642ac to your computer and use it in GitHub Desktop.
Automate setting up software from a fresh install on Mac OS X
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
#!/bin/sh | |
# mac setup automation script based on | |
# http://lapwinglabs.com/blog/hacker-guide-to-setting-up-your-mac | |
# Check for Homebrew, | |
# Install if we don't have it | |
if test ! $(which brew); then | |
echo "Installing homebrew..." | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
#ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
# Update homebrew recipes | |
echo 'Running brew update' | |
brew update | |
# Install GNU core utilities (those that come with OS X are outdated) | |
echo 'Installing coreutils' | |
brew install coreutils | |
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed | |
echo 'Installing findutilws' | |
brew install findutils | |
# Install Bash 4 | |
echo 'Installing bash' | |
brew install bash | |
# binaries | |
binaries=( | |
git | |
python | |
rbenv | |
vim | |
wget | |
) | |
echo "installing binaries..." | |
brew install ${binaries[@]} | |
brew cleanup | |
# set up Cask | |
brew install caskroom/cask/brew-cask | |
# Apps | |
apps=( | |
1password | |
adobe-reader | |
cloudy | |
dropbox | |
flux | |
front | |
google-chrome | |
google-drive | |
google-photos-backup | |
iterm2 | |
microsoft-office | |
skype | |
slack | |
spectacle | |
spotify | |
textmate | |
tunnelblick | |
vlc | |
) | |
# Install apps to /Applications | |
# Default is: /Users/$user/Applications | |
echo "installing apps..." | |
# brew cask install --appdir="/Applications" ${apps[@]} | |
brew cask install ${apps[@]} | |
# fonts | |
brew tap caskroom/fonts | |
# fonts | |
fonts=( | |
font-open-sans | |
font-droid-sans | |
font-droid-sans-mono | |
font-droid-serif | |
font-merriweather | |
font-merriweather-sans | |
font-roboto | |
) | |
# install fonts | |
echo "installing fonts..." | |
brew cask install ${fonts[@]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment