Ok, I’ve found something that works. Associating a batch file as Vladimir suggested didn’t work, but the bash arguments were key.
Short and sweet: associate with this command: “C:\cygwin\bin\bash.exe” -li “%1” %*
Long version if you don’t know how:
- In Explorer, go to Tools/Folder Options/File Types.
- I already had an SH entry for Bash Script. If you don’t have one, click New and enter “SH” to create one.
- With the SH extension selected, click Advanced.
- Choose the “open” action and click edit (or create the action).
- This is the command to use: “C:\cygwin\bin\bash.exe” -li “%1” %*. Note that without the -li, it was returing “command not found” on my scripts.
You may also want to add SH to your PATHEXT environment variable:
WinKey+Pause / Advanced / Environment Variables / System Variables / PATHEXT
Thanks for your help, guys!