Skip to content

Commit

Permalink
Merge remote-tracking branch 'sodiumjoe/optimize-startup'
Browse files Browse the repository at this point in the history
  • Loading branch information
wting committed Oct 1, 2016
2 parents b2f243e + 2e2ffcf commit 3e089a3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/autojump.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ 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})
if command -v brew &>/dev/null; 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})
fi
fi


Expand Down

0 comments on commit 3e089a3

Please sign in to comment.