Skip to content

Commit 0ea3ee9

Browse files
committed
Move PS1 into block where EESSI_MODULE_UPDATE_PS1 is exported
1 parent 329e317 commit 0ea3ee9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • init/lmod

init/lmod/sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ if [ -z "$__Init_EESSI_Default_Modules" ]; then
9797
# For the shells that use PS1 for the prompt, let's add the trigger to enable updating that by default
9898
# (in an interactive shell PS1 is likely unset, so let's only do this if it is set)
9999
if [ -n "$PS1" ]; then
100-
export PS1
101100
if [ "${EESSI_MODULE_UPDATE_PS1-}" = "0" ] ; then
102101
unset EESSI_MODULE_UPDATE_PS1
103102
else
104103
export EESSI_MODULE_UPDATE_PS1=1
104+
export PS1
105105
fi
106106
fi
107107

0 commit comments

Comments
 (0)