diff options
author | William Carroll <wpcarro@gmail.com> | 2016-08-01T18·01-0400 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2016-08-01T18·01-0400 |
commit | 3306754932caa6436ec51fe8d508eb6de75aaf1e (patch) | |
tree | ef3e88716590042fa0561681054989aa2252a15a /install_brew.sh | |
parent | 792c690e0d2908f5b4d83c03fb413b2c80975ab0 (diff) |
Adds brew to PATH and adds is_online function
Diffstat (limited to 'install_brew.sh')
-rwxr-xr-x | install_brew.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/install_brew.sh b/install_brew.sh new file mode 100755 index 000000000000..a86f1a1556db --- /dev/null +++ b/install_brew.sh @@ -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 + |