Fixed Homebrew install to initially default to ZSH

Ensures a smooth machine setup since macOS machines default to ZSH.
This can be switched to Bash once initial setup is complete.
This commit is contained in:
Brooke Kuhlmann
2022-03-15 10:11:17 -06:00
parent fa820851a2
commit efa421db4e

View File

@@ -139,6 +139,8 @@ export -f install_git_project
install_homebrew() { install_homebrew() {
if ! command -v brew > /dev/null; then if ! command -v brew > /dev/null; then
/bin/bash -c "$(curl --location --fail --silent --show-error https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" /bin/bash -c "$(curl --location --fail --silent --show-error https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "eval \"($(get_homebrew_bin_root)/brew shellenv)\"" > $HOME/.zprofile
eval "$($(get_homebrew_bin_root)/brew shellenv)"
fi fi
} }
export -f install_homebrew export -f install_homebrew