8c2145fc85785284726d6a81accc9fe63c1e12ee

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

Message

Merge pull request #1323 from lxmonk/autojump-port

added autojump plugin support for mac os x, when port installed autojump

Diff

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