Last active
August 29, 2015 14:07
-
-
Save kevincolten/91cf33abd3d717d7b086 to your computer and use it in GitHub Desktop.
When Setting Up a New Mac
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
# 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 | |
# Install GNU core utilities (those that come with OS X are outdated) | |
brew install coreutils | |
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed | |
brew install findutils | |
# Install Bash 4 | |
brew install bash | |
# Install more recent versions of some OS X tools | |
brew tap homebrew/dupes | |
brew install homebrew/dupes/grep | |
binaries=( | |
bash-git-prompt | |
) | |
echo "installing binaries..." | |
brew install ${binaries[@]} | |
brew cleanup | |
brew install caskroom/cask/brew-cask | |
# Apps | |
apps=( | |
diffmerge | |
flux | |
firefox | |
github | |
google-chrome | |
hipchat | |
iterm2 | |
mailbox | |
mamp | |
private-internet-access | |
skype | |
spectacle | |
spotify | |
sublime-text3 | |
vlc | |
xmarks-safari | |
) | |
# Install apps to /Applications | |
# Default is: /Users/$user/Applications | |
echo "installing apps..." | |
brew cask install --appdir="/Applications" ${apps[@]} | |
echo "installing rvm with latest ruby" | |
\curl -sSL https://get.rvm.io | bash -s stable --ruby |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment