Skip to content

Commit

Permalink
rejiggered homebrew for #156
Browse files Browse the repository at this point in the history
  • Loading branch information
dayne authored and Dan Croak committed Nov 24, 2013
1 parent 91d91fa commit 41a057f
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions mac-components/homebrew
@@ -1,11 +1,14 @@
fancy_echo "Installing Homebrew, a good OS X package manager ..."
ruby <(curl -fsS https://raw.github.com/mxcl/homebrew/go)
brew update
if ! type brew &>/dev/null; then
fancy_echo "Installing Homebrew, a good OS X package manager ..."
ruby <(curl -fsS https://raw.github.com/mxcl/homebrew/go)
brew update

if ! grep -qs "recommended by brew doctor" ~/.zshrc; then
fancy_echo "Put Homebrew location earlier in PATH ..."
echo "\n# recommended by brew doctor" >> ~/.zshrc
echo "export PATH='/usr/local/bin:$PATH'\n" >> ~/.zshrc
source ~/.zshrc
if ! grep -qs "recommended by brew doctor" ~/.zshrc; then
fancy_echo "Put Homebrew location earlier in PATH ..."
echo "\n# recommended by brew doctor" >> ~/.zshrc
echo "export PATH=\"/usr/local/bin:\$PATH\"\n" >> ~/.zshrc
source ~/.zshrc
fi
else
fancy_echo "homebrew already installed skipping"
fi

0 comments on commit 41a057f

Please sign in to comment.