install/mac: uses cask to install apps via homebrew

This commit is contained in:
Henrik Lissner 2013-10-15 07:46:34 -04:00
parent a3c475474a
commit 9e15fed390

View file

@ -1,8 +1,53 @@
#!/bin/sh #!/bin/sh
brew install wget curl git app_exists() {
brew install apple-gcc42 if [ -e /Applications/"$1".app ] || [ -e ~/Applications/"$1".app ]; then
brew install tmux the_silver_search return 0
brew install macvim --devel --override-system-vim --with-lua else
return 1
fi
}
if ! is_mac; then
echo-r "==> Aborting. This isn't a mac!"
exit 1
fi
if [ ! -d /usr/local/Cellar ]; then
echo-g "==> Installing homebrew"
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
else
brew tap homebrew/dupes brew tap homebrew/dupes
brew install wget curl git
brew install tmux the_silver_search
brew install lua --with-completion
brew install macvim --devel --override-system-vim --with-lua
brew install vim --override-system-vi --with-lua --with-perl
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