Set cygwin shell as terminal shell in intellij - lightblueseas/linuxstuff GitHub Wiki
How to set the cygwin shell as terminal in intellij
When you install intellij on windows you have as default terminal the cmd that does not provide many features as the linux shell. For change to cygwin shell as terminal in intellij just open the dialog for 'Settings... -> Tools -> Terminal -> Applicaiton settings -> Shell path' and insert the following value:
"$cygwinpath\bin\sh" -lic "source ~/.bash_profile; cd ${OLDPWD-.}; bash"
Where $cygwinpath is the path where you install cygwin.
Here a real world example with the install path of cygwin is 'c:\cygwin64':
"c:\cygwin64\bin\sh" -lic "source ~/.bash_profile; cd ${OLDPWD-.}; bash"
Now you can enjoy all linux shell features in intellij terminal.
Inspired by intellij-support from the answer of Esgorbachev