mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
* 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
6 lines
264 B
Bash
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
|