helm/install/mac

38 lines
960 B
Plaintext
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
if ! is_mac; then
2013-10-21 03:44:57 -07:00
echo_r "==> Mac: Aborting. This isn't a mac!"
exit 1
fi
if [ ! -d /usr/local/Cellar ]; then
2013-10-21 03:44:57 -07:00
echo_g "==> Mac: Installing homebrew"
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
2013-10-15 15:54:10 -07:00
2013-10-21 03:44:57 -07:00
echo_g "==> Mac: Done! Don't forget to install the Command Line Tools in XCode"
else
2013-10-21 03:44:57 -07:00
echo_g "==> Mac: Installing basic brews"
brew tap homebrew/dupes
brew install wget curl git
2013-10-15 15:57:02 -07:00
brew install the_silver_search
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
brew tap phinze/homebrew-cask
brew install brew-cask
2013-10-21 03:44:57 -07:00
while [ $# -gt 0 ]; do
case "$1" in
"--essentials") $BASEDIR/macapps/essentials ;;
"--home") $BASEDIR/macapps/home ;;
esac
shift
done
2013-10-21 03:44:57 -07:00
echo_g "==> Mac: Done!"
fi