Browse Source

homebrew: Load 'HOMEBREW_' prefixed variables only

Load 'HOMEBREW_' prefixed variables only. Avoid loading 'PATH'
related variables as they are already handled in standard zsh 
configuration.
master
Indrajit Raychaudhuri 6 years ago committed by GitHub
parent
commit
072030a2bf
  1. 5
      modules/homebrew/init.zsh

5
modules/homebrew/init.zsh

@ -15,9 +15,10 @@ fi
# #
# Load standard Homebrew shellenv into the shell session. # Load standard Homebrew shellenv into the shell session.
# `brew shellenv` is relatively new, guard for legacy Homebrew. # Load 'HOMEBREW_' prefixed variables only. Avoid loading 'PATH' related
# variables as they are already handled in standard zsh configuration.
if (( $+commands[brew] )); then if (( $+commands[brew] )); then
eval "$(brew shellenv 2> /dev/null)" eval "${(@M)${(f)"$(brew shellenv 2> /dev/null)"}:#export HOMEBREW*}"
fi fi
# #

Loading…
Cancel
Save