helm/install/setup_mac.sh

80 lines
2.1 KiB
Bash
Raw Normal View History

2013-08-04 02:06:30 -07:00
#!/bin/sh
2013-10-18 03:38:29 -07:00
source ~/.dotfiles/zsh/functions
2013-11-30 09:50:00 -08:00
BASEDIR=$(dirname "$0")
if ! is_mac; then
2013-11-30 09:50:00 -08:00
echo_r "==> Aborting. This isn't a mac!"
exit 1
fi
2013-11-30 09:50:00 -08:00
keep_alive
2013-12-02 10:24:24 -08:00
$BASEDIR/zsh
2013-11-30 09:50:00 -08:00
if ! command_exists brew; then
echo_g "==> Installing homebrew"
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
2013-10-15 15:54:10 -07:00
2013-11-30 09:50:00 -08:00
echo_g "==> Accept xcode agreement"
sudo xcodebuild -license
echo_g "==> Done! Please run this again (don't forget to do brew doctor first)"
else
2013-11-30 09:50:00 -08:00
echo_g "==> Installing basic brews"
if ! brew tap | grep dupes >/dev/null; then
brew tap homebrew/dupes
fi
brew install wget curl git
2013-11-30 09:50:00 -08:00
brew install the_silver_searcher
brew install lua --with-completion
2013-11-30 09:50:00 -08:00
if ! brew list | grep brew-cask >/dev/null; then
echo_g "==> Installing brew cask"
brew tap phinze/homebrew-cask
brew install brew-cask
else
echo_g "==> Cask already installed!"
fi
2013-10-21 03:44:57 -07:00
while [ $# -gt 0 ]; do
case "$1" in
2013-11-30 09:50:00 -08:00
"--basic")
echo_g "==> Installing basic bundle"
# Install the apps I find essential for every mac I'm on
# (that I don't get through the app store)
2013-11-30 10:03:26 -08:00
brew cask install appcleaner
2013-11-30 09:50:00 -08:00
brew cask install google-chrome
2013-11-30 10:02:44 -08:00
brew cask install launchbar
2013-11-30 09:50:00 -08:00
brew cask install dropbox
brew cask install iterm2
brew cask install sequel-pro
brew cask install transmission
brew cask install transmit
;;
"--dev")
echo_g "==> Installing dev bundle"
brew cask install codekit
brew cask install vagrant
;;
"--home")
echo_g "==> Installing home bundle"
brew cask install adium
brew cask install reggy
brew cask install net-news-wire
brew cask install soulver
brew cask install scrivener
brew cask install skype
brew cask install vlc
;;
2013-10-21 03:44:57 -07:00
esac
shift
done
2013-11-30 09:50:00 -08:00
echo_g "==> Done!"
2013-10-21 03:44:57 -07:00
fi