ohmyzsh/plugins/autojump/autojump.plugin.zsh
Woojong Koh fbc86a9dea Add support for autojump installed with MacPorts
* Use hash command to suppress an error message when Homebrew is not installed
* Newly added part comes from https://trac.macports.org/browser/trunk/dports/sysutils/autojump/Portfile
2011-09-16 00:26:36 +09:00

6 lines
264 B
Bash

if hash brew &> /dev/null && [ -f `brew --prefix`/etc/autojump ]; then
. `brew --prefix`/etc/autojump
elif [ -f /opt/local/etc/profile.d/autojump.sh ]; then
export FPATH="$FPATH:/opt/local/share/zsh/site-functions/"
. /opt/local/etc/profile.d/autojump.sh
fi