Is there a way that a shell script can be called from IntelliJ's startup / debug configurations?
I just found out that we can call the shell script using the BashSupport plugin.
"Add external tool" to "Before Running" does the trick.
Screenshot
Not sure about 11, but in 12 there is a part of the Run / Debug configuration called Before Run, and you can select your shell script in the Add External Tool option.