Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|