If you just want to open Cygwin with Mintty in the project directory, you can run the command:
F:\Projects\cygwin64\bin\mintty.exe /bin/env CHERE_INVOKING=1 /bin/bash -l
This will automatically not switch to the home directory. For more information about this command, see https://code.google.com/p/mintty/wiki/Tips#Starting_in_a_particular_directory .
If you want to use the built-in terminal PhpStorm, you can change the Shell path in the terminal settings. Go to File > Settings... > Tools > Terminal
. Replace the shell path F:\Projects\cygwin64\bin\env.exe CHERE_INVOKING=1 /bin/bash -l
. You may need to restart PhpStorm after this change.
Note: it is assumed that your Cygwin root directory is F:\Projects\cygwin64\
.
source share