Skip to content

Instantly share code, notes, and snippets.

@auxiliumknowledge
Last active March 21, 2024 06:32
Show Gist options
  • Save auxiliumknowledge/15e48b8b20211debd429ebfb9f1188a9 to your computer and use it in GitHub Desktop.
Save auxiliumknowledge/15e48b8b20211debd429ebfb9f1188a9 to your computer and use it in GitHub Desktop.
Brew integration for zsh
BREW_INSTALL_PATH=/opt/homebrew # no export, because this is not needed in sub shells
if [ -d ${BREW_INSTALL_PATH} ]; then
# brew is installed - safe to load into path
eval "$(${BREW_INSTALL_PATH}/bin/brew shellenv)"
export HOMEBREW_NO_ENV_HINTS=1 # hints are clutter
export HOMEBREW_NO_ANALYTICS=1 # sorry
alias b=brew # simple alias
else
# let me know if brew is missing
echo "No homebrew installation found!"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment