5d6252c6d0e3598f2e19b9a02f7eb8a49317b1f1

Author
Hauke Stange <hauke@jimdo.com>
Committer
Hauke Stange <hauke@jimdo.com>
Date

Message

fixed autojump plugin: works with homebrew again now

Diff

 1diff --git a/plugins/autojump/autojump.plugin.zsh b/plugins/autojump/autojump.plugin.zsh
 2index d367863b86f2baff8892278b06259370e0f02164..42d2d44d66638f4cc5574d1c89c1ee62e2f08eab 100644
 3--- a/plugins/autojump/autojump.plugin.zsh
 4+++ b/plugins/autojump/autojump.plugin.zsh
 5@@ -1,11 +1,11 @@
 6-if [ $commands[autojump] ]; then # check if autojump is installed
 7+if [ $commands[autojump] ]; then # check if autojump is
 8   if [ -f /usr/share/autojump/autojump.zsh ]; then # debian and ubuntu package
 9     . /usr/share/autojump/autojump.zsh
10   elif [ -f /etc/profile.d/autojump.zsh ]; then # manual installation
11     . /etc/profile.d/autojump.zsh
12   elif [ -f /opt/local/etc/profile.d/autojump.zsh ]; then # mac os x with ports
13     . /opt/local/etc/profile.d/autojump.zsh
14-  elif [ $commands[brew] -a -f `brew --prefix`/etc/autojump ]; then # mac os x with brew
15-    . `brew --prefix`/etc/autojump
16+  elif [ $commands[brew] -a -f `brew --prefix`/etc/autojump.zsh ]; then # mac os x with brew
17+    . `brew --prefix`/etc/autojump.zsh
18   fi
19 fi