From 953b17d6dcf774b50acb07af0dfa84371bf68ab5 Mon Sep 17 00:00:00 2001 From: Pablo Escobar Date: Sat, 2 Dec 2023 11:51:12 +0100 Subject: [PATCH 1/3] Prepend EESSI version to PS1 instead of overriding PS1 --- init/bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/bash b/init/bash index 84fe783bce..dbd09fdee5 100644 --- a/init/bash +++ b/init/bash @@ -13,7 +13,7 @@ source $(dirname "$BASH_SOURCE")/eessi_environment_variables # only continue if setting EESSI environment variables worked fine if [ $? -eq 0 ]; then - export PS1="[EESSI $EESSI_VERSION] $ " + export PS1="[EESSI $EESSI_VERSION]$PS1" # add location of commands provided by compat layer to $PATH; # see https://github.com/EESSI/software-layer/issues/52 From 645041c31853181b9d46329cc709950b296368b5 Mon Sep 17 00:00:00 2001 From: Pablo Escobar Date: Mon, 4 Dec 2023 09:04:10 +0100 Subject: [PATCH 2/3] Use { instead of [ when adding EESSI version to PS1 --- init/bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/bash b/init/bash index dbd09fdee5..c2fd179849 100644 --- a/init/bash +++ b/init/bash @@ -13,7 +13,7 @@ source $(dirname "$BASH_SOURCE")/eessi_environment_variables # only continue if setting EESSI environment variables worked fine if [ $? -eq 0 ]; then - export PS1="[EESSI $EESSI_VERSION]$PS1" + export PS1="{EESSI $EESSI_VERSION}$PS1" # add location of commands provided by compat layer to $PATH; # see https://github.com/EESSI/software-layer/issues/52 From 30f85b7a388a33d8b8a7f3371d4dfc2def796b76 Mon Sep 17 00:00:00 2001 From: Pablo Escobar Date: Tue, 5 Dec 2023 11:26:14 +0100 Subject: [PATCH 3/3] Add space between EESSI version and PS1 --- init/bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/bash b/init/bash index c2fd179849..cd977b3c8e 100644 --- a/init/bash +++ b/init/bash @@ -13,7 +13,7 @@ source $(dirname "$BASH_SOURCE")/eessi_environment_variables # only continue if setting EESSI environment variables worked fine if [ $? -eq 0 ]; then - export PS1="{EESSI $EESSI_VERSION}$PS1" + export PS1="{EESSI $EESSI_VERSION} $PS1" # add location of commands provided by compat layer to $PATH; # see https://github.com/EESSI/software-layer/issues/52