Initially asked on SO.com, but I closed it. I think it better fits SU.com. Please tell me if it is also not the right place.
I want to add a context menu to a .sh file to run it in cygwin.
I tried to manipulate the default "Open Cygwin here" command:
C:\cygwin\bin\mintty.exe -e /bin/xhere /bin/bash.exe "%L"
Unfortunately, all I get is a window that closes again immediately.
Also, I am not 100% sure, what is the purpose and the meaning of the arguments of xhere.
This is working:
But I'd like to have mintty as terminal window.
Is there a way to add a command string to be executed to the "Open Cygwin here" string?