From 21aab7e7be3a6166d823aa7f1501173f69f37829 Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Mon, 12 Aug 2019 18:17:31 +0100 Subject: [PATCH] updated functions.sh --- .bash.d/functions.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.bash.d/functions.sh b/.bash.d/functions.sh index 9baf68c4..a475a1e8 100644 --- a/.bash.d/functions.sh +++ b/.bash.d/functions.sh @@ -17,6 +17,11 @@ # B a s h G e n e r a l F u n c t i o n s # ============================================================================ # +srcdir="${srcdir:-$(dirname "${BASH_SOURCE[0]}")/..}" + +# shellcheck disable=SC1090 +. "$srcdir/.bash.d/os_detection.sh" + # Enables colourized return codes in prompt_func # better leave it as the same as already set. This way a reload of bashrc doesn't change the mode # could do retmode=${retmode:-off} but this is unnecessary overhead