IntelliJ IDEA: Running a shell script as a Run/Debug Configuration

I just found out that we can invoke a shell script with the help of BashSupport plugin.


'Add External tool' in the 'Before Launch' does the trick.

Screenshot

edit tool add shell script


IntelliJ IDEA 2019.2 update

New version of IntelliJ IDEA has Shell Script Support included. It means you can now create Shell Script build for your project.

Edit Configurations > (+) Add New Configuration > Shell Script

You can also build your project before executing your script by adding Run Another Configuration task. That's how it looks like: Add Shell Build window