fcc8b19253136e0f8d18d8e830c60ec64c6cc3e0

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

Message

Merge pull request #1328 from mfoo/master

Fix autojump plugin error on Linux with manual installation of autojump

Diff

 1diff --git a/plugins/autojump/autojump.plugin.zsh b/plugins/autojump/autojump.plugin.zsh
 2index fdce3a246eb97aa5fb7a36e66741bc21f24d87d0..3894ccd2f56c392f004327a5931b6b6a327b02b3 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 $HOME/.autojump/etc/profile.d/autojump.zsh ]; then # manual user-local installation
10+    . $HOME/.autojump/etc/profile.d/autojump.zsh
11   elif [ -f /opt/local/etc/profile.d/autojump.zsh ]; then # mac os x with ports
12     . /opt/local/etc/profile.d/autojump.zsh
13   elif [ $commands[brew] -a -f `brew --prefix`/etc/autojump.zsh ]; then # mac os x with brew