Skip to content

Instantly share code, notes, and snippets.

@dizk
Last active August 29, 2015 14:07
Show Gist options
  • Save dizk/ad01f963db6d3c4a77a8 to your computer and use it in GitHub Desktop.
Save dizk/ad01f963db6d3c4a77a8 to your computer and use it in GitHub Desktop.
Install script for apps/tools on os x (Inspired by 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..."
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
# Install binaries
binaries=(
python
node
git
)
echo "installing binaries..."
brew install ${binaries[@]}
# Clean up after we are done
brew cleanup
# Installing apps with brew-caskroom
brew install caskroom/cask/brew-cask
# Apps
apps=(
google-chrome
firefox
spotify
vagrant
sublime-text3
virtualbox
atom
vlc
skype
transmission
)
# Install apps to /Applications
# Default is: /Users/$user/Applications
echo "installing apps..."
brew cask install --appdir="/Applications" ${apps[@]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment