Skip to content

Commit 680f29a

Browse files
committed
make sure it works for zsh too
1 parent b7792e1 commit 680f29a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

init/modules/EESSI/2023.06.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,10 @@ if os.getenv("EESSI_MODULE_UPDATE_PS1") then
225225
local prefix = "{EESSI/" .. eessi_version .. "} "
226226
if mode() == "load" then
227227
-- Prepend prefix to PS1 without evaluating its contents
228-
execute{cmd="PS1='" .. prefix .. "'\"$PS1\"", modeA={"load"}}
228+
execute{cmd="PS1=\"" .. prefix .. "$PS1\"", modeA={"load"}}
229229
elseif mode() == "unload" then
230230
-- Strip the prefix from beginning of PS1
231-
execute{cmd="PS1=\"${PS1#'" .. prefix .. "'}\"", modeA={"unload"}}
231+
execute{cmd="PS1=\"${PS1#\"" .. prefix .. "\"}\"", modeA={"unload"}}
232232
end
233233
end
234234
end

0 commit comments

Comments
 (0)