dotfiles/setup/brew.sh

41 lines
1014 B
Bash
Raw Normal View History

2012-10-12 14:53:55 +00:00
#!/bin/bash
2012-10-23 08:47:00 +00:00
# Installs Homebrew with some formulaes
2012-10-12 14:53:55 +00:00
2012-10-19 11:54:20 +00:00
# Setup Homebrew
command -v brew >/dev/null 2>&1 || ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
2012-10-12 14:53:55 +00:00
# Make sure were using the latest Homebrew
brew update
# Upgrade any already-installed formulae
brew upgrade
2012-10-25 14:31:00 +00:00
# GNU core utilities (those that come with OS X are outdated)
2012-10-12 14:53:55 +00:00
brew install coreutils
2012-10-25 14:31:00 +00:00
# GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
2012-10-12 14:53:55 +00:00
brew install findutils
2012-10-25 14:31:00 +00:00
# More recent versions of some OS X tools
2012-10-12 14:53:55 +00:00
brew tap homebrew/dupes
brew install homebrew/dupes/grep
2012-10-25 14:31:00 +00:00
# Git
2012-10-12 14:53:55 +00:00
brew install git
brew install git-extras
2012-10-23 08:56:16 +00:00
sudo bash < <( curl https://raw.github.com/jamiew/git-friendly/master/install.sh)
2012-10-25 14:31:00 +00:00
# MySQL
brew install mysql
unset TMPDIR
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
/usr/local/opt/mysql/bin/mysqladmin -u root password 'root'
# Everything else
2012-10-19 11:16:29 +00:00
brew install unrar
2012-10-23 08:47:00 +00:00
brew install node
2012-10-12 14:53:55 +00:00
# Remove outdated versions from the cellar
2012-10-23 08:47:00 +00:00
brew cleanup