1b4a23ac8bc99fab0fb83f7393882f4219103666

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #1396 from webframp/fix/brew-autojump-zsh

Fix for brew installed autojump

Diff

 1diff --git a/plugins/autojump/autojump.plugin.zsh b/plugins/autojump/autojump.plugin.zsh
 2index d367863b86f2baff8892278b06259370e0f02164..fdce3a246eb97aa5fb7a36e66741bc21f24d87d0 100644
 3--- a/plugins/autojump/autojump.plugin.zsh
 4+++ b/plugins/autojump/autojump.plugin.zsh
 5@@ -5,7 +5,7 @@ if [ $commands[autojump] ]; then # check if autojump is installed
 6     . /etc/profile.d/autojump.zsh
 7   elif [ -f /opt/local/etc/profile.d/autojump.zsh ]; then # mac os x with ports
 8     . /opt/local/etc/profile.d/autojump.zsh
 9-  elif [ $commands[brew] -a -f `brew --prefix`/etc/autojump ]; then # mac os x with brew
10-    . `brew --prefix`/etc/autojump
11+  elif [ $commands[brew] -a -f `brew --prefix`/etc/autojump.zsh ]; then # mac os x with brew
12+    . `brew --prefix`/etc/autojump.zsh
13   fi
14 fi