summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorych <ych@cs.nctu.edu.tw>2013-11-29 18:34:12 +0800
committerych <ych@cs.nctu.edu.tw>2013-11-29 18:34:12 +0800
commit699c82eb89094e3c2ca81dfd96b44d155bca6fba (patch)
treec3ff5721e55845129af5f06653055c9f0784b874
parent66a33b80c3c5c768bab0fd4bbed37851fcc01675 (diff)
downloadzsh-699c82eb89094e3c2ca81dfd96b44d155bca6fba.tar.gz
zsh-699c82eb89094e3c2ca81dfd96b44d155bca6fba.tar.bz2
zsh-699c82eb89094e3c2ca81dfd96b44d155bca6fba.zip
Add FreeBSD support for autojump plugin
-rw-r--r--plugins/autojump/autojump.plugin.zsh2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/autojump/autojump.plugin.zsh b/plugins/autojump/autojump.plugin.zsh
index f856f2f01..0aa14959d 100644
--- a/plugins/autojump/autojump.plugin.zsh
+++ b/plugins/autojump/autojump.plugin.zsh
@@ -5,6 +5,8 @@ if [ $commands[autojump] ]; then # check if autojump is installed
. /etc/profile.d/autojump.zsh
elif [ -f /etc/profile.d/autojump.sh ]; then # gentoo installation
. /etc/profile.d/autojump.sh
+ elif [ -f /usr/local/share/autojump/autojump.zsh ]; then # freebsd installation
+ . /usr/local/share/autojump/autojump.zsh
elif [ -f $HOME/.autojump/etc/profile.d/autojump.zsh ]; then # manual user-local installation
. $HOME/.autojump/etc/profile.d/autojump.zsh
elif [ -f /opt/local/etc/profile.d/autojump.zsh ]; then # mac os x with ports