Windows – How to create a shortcut in the Windows 7 taskbar that starts mintty and cygwin

cygwin;minttytaskbarwindows 7

I would like to have a starter in the Windows 7 taskbar that starts Cygwin, then starts mintty and then ideally navigates to /cygdrive/c/Users/myName/

I guess this should be possible using some unholy combination of batch files and shell scripts. Could you help me there?

Best Answer

You can just create a mintty shortcut, with these settings:

Target: C:\cygwin\bin\mintty /bin/env CHERE_INVOKING=1 /bin/bash -l
Start in: C:\Users\yourName

No scripts required. Setting CHERE_INVOKING stops /etc/profile from changing directory to $HOME. (That variable comes from the 'chere' package.)