浏览代码

Merge pull request #743 from c089/autojump-macports

add support for autojump installed via macports
Robby Russell 13 年之前
父节点
当前提交
047fcdc2cb
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      plugins/autojump/autojump.plugin.zsh

+ 3 - 1
plugins/autojump/autojump.plugin.zsh

@@ -1,3 +1,5 @@
-if [ -f `brew --prefix`/etc/autojump ]; then
+if [ -f /opt/local/etc/profile.d/autojump.sh ]; then
+  . /opt/local/etc/profile.d/autojump.sh
+elif [ -f `brew --prefix`/etc/autojump ]; then
   . `brew --prefix`/etc/autojump
   . `brew --prefix`/etc/autojump
 fi
 fi