Setting environment variables: bash issue
I would like to automate environment initialization prior to OpenFOAM use.
I wrote the following bash script, but it doesn't work at all. Environment is only set inside script, when it exit the script and goes back to console, nothing changes, no variable has been defined.
Do you know how can I keep environment after script execution ?
Thanks for your help.
Greetings Xavier and welcome to the forum!
You should resort to an alias instead, placed in your "~/.bashrc". Example for your case:
Thank you very much for your advice and for the link.
|All times are GMT -4. The time now is 20:48.|