Skip to content

Instantly share code, notes, and snippets.

@kevincolten
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevincolten/91cf33abd3d717d7b086 to your computer and use it in GitHub Desktop.
Save kevincolten/91cf33abd3d717d7b086 to your computer and use it in GitHub Desktop.
When Setting Up a New Mac
# 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