Use Babun as a terminal in PhpStorm

In order to Use Babun (or other Cygwin clones) as a terminal in PhpStorm and make it open Cygwin command in specified directory on windows then follow this easy steps:
For the PhpStorm that I’am using (v10.0.4) in Windows 10, open File > Settings… > Tools > Terminal,  replace the shell path with :
D:\tools\.babun\cygwin\bin\env.exe CHERE_INVOKING=1 /bin/bash.exe

You may need to restart PhpStorm after this change.

I’m using Babun which installs the Cygwin in:
D:\tools\.babun\cygwin