|
|
@ -14,14 +14,13 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
# prevent circular loop for sh shells
|
|
|
|
# prevent circular loop for sh shells
|
|
|
|
if [ "${shell}" = "sh" ]; then
|
|
|
|
if [ "${shell}" = "sh" ]; then
|
|
|
|
return 0
|
|
|
|
return 0
|
|
|
|
|
|
|
|
|
|
|
|
# check local install
|
|
|
|
# check local install
|
|
|
|
elif [ -s ~/.autojump/share/autojump/autojump.${shell} ]; then
|
|
|
|
elif [ -s ~/.autojump/share/autojump/autojump.${shell} ]; then
|
|
|
|
source ~/.autojump/share/autojump/autojump.${shell}
|
|
|
|
source ~/.autojump/share/autojump/autojump.${shell}
|
|
|
|
|
|
|
|
|
|
|
|
# check global install
|
|
|
|
# check global install
|
|
|
|
elif [ -s /usr/local/share/autojump/autojump.${shell} ]; then
|
|
|
|
elif [ -s /usr/local/share/autojump/autojump.${shell} ]; then
|
|
|
|
source /usr/local/share/autojump/autojump.${shell}
|
|
|
|
source /usr/local/share/autojump/autojump.${shell}
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|