Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set bash interpreter path in IntelliJ

I am wondering which path should be set in "Interpreter path" area in Run/Debug Configurations in IntelliJ, to complie and run bash script.

Using IntelliJ 15.0.3 on Windows 7

like image 497
drstonecodez Avatar asked Feb 25 '16 12:02

drstonecodez


2 Answers

You must have a shell installed.

I have Git installed, so I use the path to the git shell.

Something like C:\Program Files\Git\bin\sh.exe.

I use also the --login -i flags for the "Interpreter options" field.

like image 200
noEmbryo Avatar answered Oct 04 '22 04:10

noEmbryo


If you want to use the Windows CMD.exe you have to set:

  • Interpreter path: C:\WINDOWS\system32\CMD.exe (or wherever your cmd.exe is located)
  • Interpreter options: /C
  • Working directory: path/to/your/project

in the IntelliJ run config.

(Tested with IntelliJ 2017.3)

like image 41
Peter Avatar answered Oct 04 '22 04:10

Peter