1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

minimize number of calls to brew

This commit is contained in:
Joe Moon 2016-09-29 19:45:26 -07:00
parent c4d82b1888
commit 332698fdc5

View File

@ -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