- Right click on “My Computer” -> Properties -> Advanced ->
Environment Variables - Add a new environment variable, called
CYGWIN_HOME
and set its value toC:\cygwin
- Edit the PATH environment variable and add
%CYGWIN_HOME%\bin
to it (usually separated by a ‘;’). - Just click okay, exit any command prompts or bash shells (over cygwin) you may have open, and open it again – it’ll work!
Assumption – this assumes that you have installed cygwin at C:\cygwin
. If you’ve kept it someplace else, please modify the above accordingly.