Added brew and cask scripts.

This commit is contained in:
2013-11-09 21:26:48 -05:00
parent c172186191
commit 0e9e703cd8
2 changed files with 80 additions and 0 deletions

47
brew Executable file
View File

@@ -0,0 +1,47 @@
#!/usr/bin/env bash
brew_path=$(which brew)
if [ -x "$brew_path" ] ; then
echo "Install/Updating Homebrew Packages"
echo ""
else
echo "Installing homebrew"
echo ""
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
if [ $? -ne 0 ]; then
echo "Error installing homebrew. Bailing..."
echo ""
exit 1;
else
brew doctor
if [ $? -ne 0 ]; then
echo "Brew Doctor is not happy. Bailing..."
echo ""
exit 1;
fi
fi
fi
brew update
brew upgrade
brew install ack
brew install apple-gcc42
brew install chruby
brew install elixir
brew install git
brew install git-flow
brew install go
brew install heroku-toolbelt
brew install leiningen
brew install macvim --override-system-vim
brew install maven
brew install mongodb
brew install postgresql
brew install reattach-to-user-namespace
brew install ruby-install
brew install tmux
brew install weechat --with-python --with-ruby --with-aspell
brew cleanup

33
cask Executable file
View File

@@ -0,0 +1,33 @@
#!/usr/bin/env bash
brew_path=$(which brew)
if [ -x "$brew_path" ] ; then
echo "Install/Updating Homebrew Packages"
echo ""
brew tap phinze/homebrew-cask
brew install brew-cask
function installcask() {
brew cask install "${@}"
}
installcask airfoil
installcask alfred
installcask crashplan
installcask dropbox
installcask evernote
installcask gitx-rowanj
installcask google-chrome
installcask handbrake
installcask iterm2
installcask istat-menus
installcask rdio
installcask skype
installcask sublime-text
installcask vagrant
installcask virtualbox
else
echo "Install Homebrew first. Run ~/dotfiles/brew first."
echo ""
fi