I'm trying to set a environment variable for the intellij terminal gobally for all projects. Up to now I only found the setting in File>Settings>Tools>Terminal but somehow this is not applied throughout all projects.
Is there a way to set this globally?
File | New Project Settings | Settings for New Projects...
It will apply only to the new projects. At the moment there is no way to globally change the settings for the existing projects.
If you need a global environment variable, consider setting it in the OS configuration instead.
In case the goal is to detect if your app/script is running inside IntelliJ IDEA Terminal, you can use TERMINAL_EMULATOR=JetBrains-JediTerm
environment variable for that.