Reputation: 11433
I want to run a command in the OSX terminal using the IntelliJ Idea External Tools. I don't want the command to run in the IntelliJ terminal.
This is what should happen when I run the tool:
Is this possible?
Upvotes: 2
Views: 2851
Reputation: 8116
This should be possible, however, I don't have a mac to test this on. This is how you would do it in Windows. Maybe you can translate to the OSX equivalents.
Program cmd.exe
Parameters /c start "" cmd.exe /k dir
Working directory $FileDir$
cmd.exe
is the terminal so substitute the OSX terminal command here.
/c
passes commands to cmd.exe then exits
start "" cmd.exe
is a Windows command to start an application ""
means no title and cmd.exe
says we are going to launch the command window again.
/k
means do the command and then stay open
dir
is the command I am doing (same as ls
)
$FileDir$
is the IDEA macro for the the directory of the file you are clicking on. You can change this to other macros to what fits your need.
Upvotes: 5