Skip to content

Commit

Permalink
Install Homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandoaleman committed Oct 13, 2023
1 parent 035d392 commit 3aa3705
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions mac
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,21 @@ if [ "$arch" = "arm64" ]; then
fi
fi

if ! command -v brew >/dev/null; then
fancy_echo "Installing Homebrew ..."
/bin/bash -c \
"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

append_to_zshrc "eval \"\$($HOMEBREW_PREFIX/bin/brew shellenv)\""

export PATH="$HOMEBREW_PREFIX/bin:$PATH"
fi

if brew list | grep -Fq brew-cask; then
fancy_echo "Uninstalling old Homebrew-Cask ..."
brew uninstall --force brew-cask
fi

brew analytics off

# ft=shell

0 comments on commit 3aa3705

Please sign in to comment.