minimize number of calls to `brew`

pull/445/head
Joe Moon 8 years ago
parent c4d82b1888
commit 332698fdc5

@ -10,8 +10,9 @@ fi
# set homebrew installation paths
if command -v brew &>/dev/null && [[ -d "$(brew --prefix)/share/zsh/site-functions" ]]; then
fpath=("$(brew --prefix)/share/zsh/site-functions" ${fpath})
local brew_prefix=${BREW_PREFIX:-$(brew --prefix)}
if [[ -d "${brew_prefix}/share/zsh/site-functions" ]]; then
fpath=("${brew_prefix}/share/zsh/site-functions" ${fpath})
fi

Loading…
Cancel
Save