mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
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
This commit is contained in:
parent
762b55bb2b
commit
fbc86a9dea
1 changed files with 4 additions and 1 deletions
|
|
@ -1,3 +1,6 @@
|
|||
if [ -f `brew --prefix`/etc/autojump ]; then
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue