diff --git a/bin/autojump b/bin/autojump index 06fa9f9..c458ba8 100755 --- a/bin/autojump +++ b/bin/autojump @@ -65,7 +65,7 @@ from autojump_utils import sanitize from autojump_utils import take from autojump_utils import unico -VERSION = '22.4.0' +VERSION = '22.4.1' FUZZY_MATCH_THRESHOLD = 0.6 TAB_ENTRIES_COUNT = 9 TAB_SEPARATOR = '__' diff --git a/bin/autojump.zsh b/bin/autojump.zsh index 79f7cd2..92c31d7 100644 --- a/bin/autojump.zsh +++ b/bin/autojump.zsh @@ -10,9 +10,8 @@ fi # set homebrew installation paths -local brew_prefix=${BREW_PREFIX:-$(brew --prefix)} -if [[ -d "${brew_prefix}/share/zsh/site-functions" ]]; then - fpath=("${brew_prefix}/share/zsh/site-functions" ${fpath}) +if command -v brew &>/dev/null && [[ -d "$(brew --prefix)/share/zsh/site-functions" ]]; then + fpath=("$(brew --prefix)/share/zsh/site-functions" ${fpath}) fi