Search code examples
intellij-ideaterminalgit-bash

How to make Git-Bash default terminal for IntelliJ IDEA?


I want to make Git-Bash default terminal for IDEA so that when I run the program using the run button, It should execute the program from 'Terminal' tab that I'd setup using 'sh.exe' rather than using the 'Run' tab.


Solution

  • You can create a run configuration for a Shell Script. Then you configure the interpreter path to use the gitbash exe.

    enter image description here

    enter image description here