699c82eb89094e3c2ca81dfd96b44d155bca6fba

Author
ych <ych@cs.nctu.edu.tw>
Committer
ych <ych@cs.nctu.edu.tw>
Date

Message

Add FreeBSD support for autojump plugin

Diff

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