-
Notifications
You must be signed in to change notification settings - Fork 16
Add capability to update PS1 when loading the EESSI module
#154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
init/modules/EESSI/2023.06.lua
Outdated
|
|
||
| -- change the PS1 if it exists to indicate you have EESSI loaded | ||
| -- (doesn't help with a csh or fish prompt, but we just live with that) | ||
| if os.getenv("EESSI_UPDATE_PS1") then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I protected this so as not to change the current behaviour
…e-layer-scripts into update_prompt_with_module
|
bot: build repo:eessi.io-2025.06-software instance:eessi-bot-deucalion for:arch=aarch64/a64fx |
|
New job on instance
|
|
New job on instance
|
|
bot: build repo:eessi.io-2025.06-software instance:eessi-bot-deucalion for:arch=aarch64/a64fx |
|
New job on instance
|
|
New job on instance
|
|
bot: build repo:eessi.io-2025.06-software instance:eessi-bot-deucalion for:arch=aarch64/a64fx |
|
New job on instance
|
|
New job on instance
|
|
I gave it a try on our cluster, but for some reason it doesn't work, the prompt doesn't get changed. I added an But it does exist: |
|
Looks like |
|
Not sure how portable this is (only tested with bash), but something like this may work? edit: for some reason it doesn't work when loading EESSI/2023.06 again while it's already loaded. |
With this change you get
By requiring
EESSI_MODULE_UPDATE_PS1I've retained the original behaviour, but I do think the prompt change is nice (especially since EESSI is really an entirely different OS, it's good to aways know when you are inside).