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 # set homebrew installation paths
if command -v brew &>/dev/null && [[ -d "$(brew --prefix)/share/zsh/site-functions" ]]; then local brew_prefix=${BREW_PREFIX:-$(brew --prefix)}
fpath=("$(brew --prefix)/share/zsh/site-functions" ${fpath}) if [[ -d "${brew_prefix}/share/zsh/site-functions" ]]; then
fpath=("${brew_prefix}/share/zsh/site-functions" ${fpath})
fi fi

Loading…
Cancel
Save