From 0cf50c3b458c15014623539977aa9515aa537d35 Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Mon, 22 Jul 2019 13:25:35 +0100 Subject: [PATCH] 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 --- bin/autojump.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/autojump.sh b/bin/autojump.sh index 0ddff47..197830a 100644 --- a/bin/autojump.sh +++ b/bin/autojump.sh @@ -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