Home > database >  How to open Cygwin at the location of an opened project in Intellij?
How to open Cygwin at the location of an opened project in Intellij?

Time:05-06

I can configure Cygwin as my terminal in Intellij by selecting the Cygwin.bat as shell path in Tools > Terminal settings.

I want it to open at the project folder. For example, If the project is at c:\projects\project1 and I open project1 when I'm clicking on the Terminal I expect the prompt to be at:

myuser@ /cygdrive/c/projects/project1

How can I achieve this?

CodePudding user response:

The solution from this forum post should help:

"c:\cygwin64\bin\sh" -lic 'cd -; exec bash'
  • Related