Last active
March 21, 2024 06:32
-
-
Save auxiliumknowledge/15e48b8b20211debd429ebfb9f1188a9 to your computer and use it in GitHub Desktop.
Brew integration for zsh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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