about summary refs log tree commit diff
path: root/install_brew.sh
diff options
context:
space:
mode:
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
+