From 039b8f255fab40dccfa888219802076d22ea628e Mon Sep 17 00:00:00 2001 From: Daniel Ericsson Date: Tue, 1 May 2012 12:38:43 +0200 Subject: [PATCH] Source autojump if it's installed with MacPorts Add macports zsh site-functions for auto complete. --- plugins/autojump/autojump.plugin.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/autojump/autojump.plugin.zsh b/plugins/autojump/autojump.plugin.zsh index 6f0edb062..75477303a 100644 --- a/plugins/autojump/autojump.plugin.zsh +++ b/plugins/autojump/autojump.plugin.zsh @@ -3,6 +3,9 @@ if [ $commands[autojump] ]; then # check if autojump is installed . /usr/share/autojump/autojump.zsh elif [ -f /etc/profile.d/autojump.zsh ]; then # manual installation . /etc/profile.d/autojump.zsh + elif [ -f /opt/local/etc/profile.d/autojump.sh ]; then # mac os x with macports + export FPATH="$FPATH:/opt/local/share/zsh/site-functions/" + . /opt/local/etc/profile.d/autojump.sh elif [ $commands[brew] -a -f `brew --prefix`/etc/autojump ]; then # mac os x with brew . `brew --prefix`/etc/autojump fi