about summary refs log tree commit diff
path: root/install_brew.sh
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2016-08-01T18·01-0400
committerWilliam Carroll <wpcarro@gmail.com>2016-08-01T18·01-0400
commit3306754932caa6436ec51fe8d508eb6de75aaf1e (patch)
treeef3e88716590042fa0561681054989aa2252a15a /install_brew.sh
parent792c690e0d2908f5b4d83c03fb413b2c80975ab0 (diff)
Adds brew to PATH and adds is_online function
Diffstat (limited to 'install_brew.sh')
-rwxr-xr-xinstall_brew.sh21
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
+