From b2f243ee17e918821e2d15a1de5e20b0f7f981f2 Mon Sep 17 00:00:00 2001 From: William Ting Date: Fri, 30 Sep 2016 12:10:07 -0700 Subject: [PATCH] Revert "Merge remote-tracking branch 'sodiumjoe/optimize-startup'" This reverts commit 39990fff58f4141bf60cebd30d93954bae84828a, reversing changes made to c4d82b1888059f9d210e0db25a0e444de8e3dbcf. --- bin/autojump | 2 +- bin/autojump.zsh | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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