7 # Straight from https://brew.sh
8 #/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
10 # From Straight from https://brew.sh
11 if ! [ -d "$HOME/.local/opt/brew" ]; then
12 echo "Installing to '$HOME/.local/opt/brew'"
14 echo "If you prefer to have brew installed to '/usr/local' cancel now and do the following:"
15 echo " rm -rf '$HOME/.local/opt/brew'"
16 echo ' /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"'
19 git clone --depth=1 https://github.com/Homebrew/brew "$HOME/.local/opt/brew"
22 webi_path_add "$HOME/.local/opt/brew/bin"
23 export PATH="$HOME/.local/opt/brew/bin:$PATH"
25 echo "Updating brew..."
28 webi_path_add "$HOME/.local/opt/brew/sbin"
29 export PATH="$HOME/.local/opt/brew/sbin:$PATH"
31 echo "Installed 'brew' to '$HOME/.local/opt/brew'"
33 echo "If you prefer to have brew installed to '/usr/local' do the following:"
34 echo " mv '$HOME/.local/opt/brew' '$HOME/.local/opt/brew.$(date '+%F_%H-%M-%S').bak'"
35 echo ' /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"'