From 3ddd3ef88607af775013b07f56abec4e285963a1 Mon Sep 17 00:00:00 2001 From: Spotlight Date: Fri, 4 Jun 2021 19:12:41 -0500 Subject: [PATCH] Prefer using shellenv instead of manually defined paths with brew --- zshrc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zshrc b/zshrc index ff1c71d..4d93aed 100644 --- a/zshrc +++ b/zshrc @@ -81,8 +81,7 @@ if [[ $OSTYPE == darwin* ]]; then if $BREW_FOUND; then # Ensure Homebrew can be found within the path. - export PATH="${BREW_PREFIX}/bin:${BREW_PREFIX}/sbin:${PATH}" - export FPATH="${BREW_PREFIX}/share/zsh/site-functions:$FPATH" + eval $($BREW_PREFIX/bin/brew shellenv) fi # Under Darwin, we also want iTerm2 integration if possible.