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:
parent
06e082c918
commit
0cf50c3b45
@ -18,9 +18,9 @@ if [ "${shell}" = "sh" ]; then
|
||||
|
||||
# check local install
|
||||
elif [ -s ~/.autojump/share/autojump/autojump.${shell} ]; then
|
||||
source ~/.autojump/share/autojump/autojump.${shell}
|
||||
. ~/.autojump/share/autojump/autojump.${shell}
|
||||
|
||||
# check global install
|
||||
elif [ -s /usr/local/share/autojump/autojump.${shell} ]; then
|
||||
source /usr/local/share/autojump/autojump.${shell}
|
||||
. /usr/local/share/autojump/autojump.${shell}
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user