401c82a8c88d8dc7a2e89b67dc62b9ec020b88df
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #2286 from ych/master
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