Setting ENV variables
From terminal
Start from Command Line/CLI for Environment Variables to Be Picked Up
Start IntelliJ from command line
Start IntelliJ from command line for your env variables to be picked up.
First create command line launcher in IntelliJ:
Tools->Create Command-line LauncherThen from terminal start IntelliJ using
ideaor if you have modified the default
ideabehavior.command ideaNow IntelliJ that was started from command line should have your environment variables.
Note: close all instances IF modified env variable
Link to originalNote if you have modified the ENV variable in your terminal, you need to close all instances of IntelliJ. And re-open from relevant terminal window (where env variable is set). For env variable to be picked up.