1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

Add fpath update for homebrew installs

This commit is contained in:
Evan Shelhamer 2012-03-01 19:45:47 -05:00
parent a74ef31e22
commit 394c67c441

View File

@ -33,6 +33,10 @@ if [[ -d ~/.autojump/ ]]; then
path=(~/.autojump/bin $path)
fpath=(~/.autojump/functions/ $fpath)
fi
# set fpath if necessary for homebrew installation
if [[ -n "`which brew`" && -d `brew --prefix`/share/zsh/functions ]]; then
fpath=(`brew --prefix`/share/zsh/functions $fpath)
fi
function autojump_preexec() {
if [[ "${AUTOJUMP_KEEP_SYMLINKS}" == "1" ]]