We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 329e317 commit 0ea3ee9Copy full SHA for 0ea3ee9
1 file changed
init/lmod/sh
@@ -97,11 +97,11 @@ if [ -z "$__Init_EESSI_Default_Modules" ]; then
97
# For the shells that use PS1 for the prompt, let's add the trigger to enable updating that by default
98
# (in an interactive shell PS1 is likely unset, so let's only do this if it is set)
99
if [ -n "$PS1" ]; then
100
- export PS1
101
if [ "${EESSI_MODULE_UPDATE_PS1-}" = "0" ] ; then
102
unset EESSI_MODULE_UPDATE_PS1
103
else
104
export EESSI_MODULE_UPDATE_PS1=1
+ export PS1
105
fi
106
107
0 commit comments