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

Change "source" to "." in autojump.sh

This makes the file more POSIX-compliant, which is useful in some OSs
that link /bin/sh to secondary shells for performance improvements
while still using bash as the default shell

Reference: https://wiki.ubuntu.com/DashAsBinSh
This commit is contained in:
Anderson Bravalheri 2019-07-22 13:25:35 +01:00
parent 06e082c918
commit 0cf50c3b45

View File

@ -18,9 +18,9 @@ if [ "${shell}" = "sh" ]; then
# 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} . ~/.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} . /usr/local/share/autojump/autojump.${shell}
fi fi