Issue
I have some aliased defined on my .bashrc
that I'd like to use on my Intellij IDEA's terminal. Why is .bashrc
not sourced?
id='dv3'>
Solution
.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!)
Answered By - Kyle Strand Answer Checked By - Senaida (WPSolving Volunteer)