Usefull tips

1. I needed to join Cygwin and Total Commander in a way that on given source location I can open Cygwin by pressing one button. The solution turned out to be nontrivial.

C:\cygwin\bin\bash.exe
--login -i -c "cd \"%P\\\\";bash"