2013-08-04 02:06:30 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
2013-10-15 04:46:34 -07:00
|
|
|
app_exists() {
|
|
|
|
if [ -e /Applications/"$1".app ] || [ -e ~/Applications/"$1".app ]; then
|
|
|
|
return 0
|
|
|
|
else
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
}
|
2013-08-04 02:06:30 -07:00
|
|
|
|
2013-10-18 03:38:29 -07:00
|
|
|
source ~/.dotfiles/zsh/functions
|
|
|
|
|
2013-10-15 04:46:34 -07:00
|
|
|
if ! is_mac; then
|
2013-10-18 04:03:28 -07:00
|
|
|
echo_r "==> Aborting. This isn't a mac!"
|
2013-10-15 04:46:34 -07:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -d /usr/local/Cellar ]; then
|
2013-10-18 04:03:28 -07:00
|
|
|
echo_g "==> Installing homebrew"
|
2013-10-15 04:46:34 -07:00
|
|
|
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
|
2013-10-15 15:54:10 -07:00
|
|
|
|
2013-10-18 04:03:28 -07:00
|
|
|
echo_g "Done! Don't forget to install the Command Line Tools in XCode"
|
2013-10-15 04:46:34 -07:00
|
|
|
else
|
2013-10-18 04:03:28 -07:00
|
|
|
echo_g "==> Installing all brews and apps"
|
2013-10-15 04:46:34 -07:00
|
|
|
brew tap homebrew/dupes
|
|
|
|
|
|
|
|
brew install wget curl git
|
2013-10-15 15:57:02 -07:00
|
|
|
brew install the_silver_search
|
2013-10-15 04:46:34 -07:00
|
|
|
brew install lua --with-completion
|
|
|
|
brew install macvim --devel --override-system-vim --with-lua
|
2013-10-15 15:57:02 -07:00
|
|
|
# brew install vim --override-system-vi --with-lua --with-perl
|
2013-10-15 04:46:34 -07:00
|
|
|
|
|
|
|
brew tap phinze/homebrew-cask
|
|
|
|
brew install brew-cask
|
|
|
|
|
|
|
|
# Install the apps I find useful (that I don't get through the app store)
|
|
|
|
app_exists "LaunchBar" && brew cask install launchbar
|
|
|
|
app_exists "Dropbox" && brew cask install dropbox
|
|
|
|
app_exists "Google Chrome" && brew cask install google-chrome
|
|
|
|
app_exists "Adium" && brew cask install adium
|
|
|
|
app_exists "AppCleaner" && brew cask install app-cleaner
|
|
|
|
app_exists "CodeKit" && brew cask install codekit
|
|
|
|
app_exists "iTerm" && brew cask install iterm2
|
|
|
|
app_exists "Reggy" && brew cask install reggy
|
|
|
|
app_exists "NetNewsWire" && brew cask install net-news-wire
|
|
|
|
app_exists "Soulver" && brew cask install soulver
|
|
|
|
app_exists "Scrivener" && brew cask install scrivener
|
|
|
|
app_exists "Sequel Pro" && brew cask install sequel-pro
|
|
|
|
app_exists "Skype" && brew cask install skype
|
|
|
|
app_exists "Transmission" && brew cask install transmission
|
|
|
|
app_exists "Transmit" && brew cask install transmit
|
|
|
|
app_exists "VLC" && brew cask install vlc
|
|
|
|
|
|
|
|
# I get Sparrow though the app store
|
|
|
|
#app_exists "Sparrow" && brew cask install sparrow
|
|
|
|
fi
|
|
|
|
|
|
|
|
exit 0
|