From a20b577a9417c6832cf056063115df45f12751df Mon Sep 17 00:00:00 2001 From: ChetaN KS Date: Wed, 13 Aug 2025 20:07:49 +0530 Subject: [PATCH] fix: Fix basher PATH redundancy on shell-reload Signed-off-by: ChetaN KS --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 4a196cc..3511576 100644 --- a/install.sh +++ b/install.sh @@ -40,7 +40,7 @@ basher_keyword="basher5ea843" echo ". add basher initialisation to [$startup_script]" if [[ "$startup_type" == "simple" ]]; then ( - echo "export PATH=\"\$HOME/.basher/bin:\$PATH\" ##$basher_keyword" + echo "(echo "\$PATH" | grep -q "\$HOME/.basher/bin:") || export PATH=\"\$HOME/.basher/bin:\$PATH\" ##$basher_keyword" # shellcheck disable=SC2086 echo "eval \"\$(basher init - $shell_type)\" ##$basher_keyword" ) >>"$startup_script"