I'd like to run a long rsync command in Cygwin by double clicking on a .sh file in Windows. It must start in the file's containing directory (e.g. /cygdrive/c/scripts/) so that relative paths work. Anyone gotten this to work?
Note: I've just found here, a Cygwin package that manages Windows context menus (Bash Prompt Here). It might have some clues.
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:
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!