Adds brew to PATH and adds is_online function

This commit is contained in:
William Carroll 2016-08-01 14:01:51 -04:00
parent 792c690e0d
commit 3306754932
6 changed files with 57 additions and 35 deletions

21
install_brew.sh Executable file
View file

@ -0,0 +1,21 @@
#!/usr/bin/env bash
echo "Installing Homebrew..."
$(which ruby) -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
$(which ruby) -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "Homebrew installed."
echo ""
pushd "$HOME/pc_settings"
# install brew dependencies
echo "Installing Homebrew packages..."
cat ./brew_packages.txt | xargs brew install
echo "Homebrew packages installed."
echo ""
echo "Homebrew installed complete!"
echo ""
popd