mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
restore command -v brew
check
This commit is contained in:
parent
332698fdc5
commit
4f238bdd46
@ -10,9 +10,11 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
# set homebrew installation paths
|
# set homebrew installation paths
|
||||||
local brew_prefix=${BREW_PREFIX:-$(brew --prefix)}
|
if command -v brew &>/dev/null; then
|
||||||
if [[ -d "${brew_prefix}/share/zsh/site-functions" ]]; then
|
local brew_prefix=${BREW_PREFIX:-$(brew --prefix)}
|
||||||
|
if [[ -d "${brew_prefix}/share/zsh/site-functions" ]]; then
|
||||||
fpath=("${brew_prefix}/share/zsh/site-functions" ${fpath})
|
fpath=("${brew_prefix}/share/zsh/site-functions" ${fpath})
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user