5a424fc12fc62512400887236ef20ea2268bba94

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

Check first default Homebrew prefix

Diff

 1diff --git a/plugins/autojump/autojump.plugin.zsh b/plugins/autojump/autojump.plugin.zsh
 2index 3434fb37b4bedfae5135ce1c068c34208ea36e49..81664e1ae71ac2b8304781bdd2908e199bfb4c08 100644
 3--- a/plugins/autojump/autojump.plugin.zsh
 4+++ b/plugins/autojump/autojump.plugin.zsh
 5@@ -17,6 +17,8 @@ if [ $commands[autojump] ]; then # check if autojump is installed
 6     source /usr/local/share/autojump/autojump.zsh
 7   elif [ -f /opt/local/etc/profile.d/autojump.sh ]; then # mac os x with ports
 8     source /opt/local/etc/profile.d/autojump.sh
 9+  elif [ -f /usr/local/etc/profile.d/autojump.sh ]; then # mac os x with brew
10+    source /usr/local/etc/profile.d/autojump.sh
11   elif [ $commands[brew] -a -f $(brew --prefix)/etc/profile.d/autojump.sh ]; then # mac os x with brew
12     source $(brew --prefix)/etc/profile.d/autojump.sh
13   fi