

envrc file to the direnv exec command.Įxample: direnv exec /Users/jetbrains/sample_app If you use direnv to load and unload environment variables, pass a path to the directory with the. Note that the *.sh file should have at the end to allow IntelliJ IDEA to pass some commands required for adding an interpreter.

If you use a shell script to load environment variables, you need to provide an absolute path to this script.Įxample: /bin/bash /Users/jetbrains/sample_app/env.sh Specify the environment variable values directly. Then, configure the Custom environment in one of the following ways: In the invoked dialog, provide a path to the Ruby executable as described in Add an interpreter. In the Ruby SDK and Gems page, click the button and select Interpreter with Custom Environment: Open the Project Structure dialog Ctrl+Alt+Shift+S and select Modules on the left. To do this, you need to provide environment variable values or a path to a configuration script when adding a local interpreter. IntelliJ IDEA allows you to use your custom environment for running any Ruby command from within IntelliJ IDEA.
