b4c06f2b50e499fbd6b827c1b287276d9cacd3e6
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
Complain when no autojump script was found
Diff
1diff --git a/plugins/autojump/autojump.plugin.zsh b/plugins/autojump/autojump.plugin.zsh
2index 7ccd09303348dded3c97028205ee6b83a327d684..13c1d00ed5f0f46d01b5250dfa001ddf6239567b 100644
3--- a/plugins/autojump/autojump.plugin.zsh
4+++ b/plugins/autojump/autojump.plugin.zsh
5@@ -28,7 +28,12 @@ done
6 # if no path found, try Homebrew
7 if (( ! found && $+commands[brew] )); then
8 file=$(brew --prefix)/etc/profile.d/autojump.sh
9- [[ -f "$file" ]] && source "$file"
10+ if [[ -f "$file" ]]; then
11+ source "$file"
12+ found=1
13+ fi
14 fi
15
16+(( ! found )) && echo '[oh-my-zsh] autojump script not found'
17+
18 unset autojump_paths file found