.bashrc
is only loaded when Bash is running in “interactive” mode. For some reason, IntelliJ defaults to running Bash in non-interactive mode, but this is easy to change. Open the IntelliJ Settings window, then open “Tools -> Terminal”, and add -i
to the Shell path.
(Note that in this screenshot, I have also changed the default shell, because I’m on a Mac, which makes it difficult to update /bin/bash
. Unless you have installed a different version of Bash, do not blindly copy this change!)