From e277b6e960d8f6fb2619db10e3384fdbce3881be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radovan=20Garab=C3=ADk?= Date: Mon, 26 Jul 2021 18:02:08 +0200 Subject: [PATCH] do not exit from the main shell when sourcing --- grc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grc.sh b/grc.sh index 35d7480..231b46e 100644 --- a/grc.sh +++ b/grc.sh @@ -2,7 +2,7 @@ [ -f /etc/default/grc ] && . /etc/default/grc -[ x$GRC_ALIASES = xtrue ] || exit 0 +[ x$GRC_ALIASES = xtrue ] || return 0 GRC="$(which grc)" if tty -s && [ -n "$TERM" ] && [ "$TERM" != dumb ] && [ -n "$GRC" ]; then