1. In the cygwin.bat file I add the line
set __CYG_PATH_=%~1
(somewhere before 'bash --login -i' line)
2. In my .bash_profile I add the line:
cd "$__CYG_PATH_"
3. I add to the registry the following lines:
[HKEY_CLASSES_ROOT\Directory\shell\CygCmd] @="CYGWIN Shell"
[HKEY_CLASSES_ROOT\Directory\shell\CygCmd\command] @="C:\\cygwin\\cygwin.bat \"%1\""
[HKEY_CLASSES_ROOT\Drive\shell\CygCmd] @="CYGWIN Shell"
[HKEY_CLASSES_ROOT\Drive\shell\CygCmd\command] @="C:\\cygwin\\cygwin.bat \"%1\""
I wonder if there isn't a simpler and nicer way to do this?
Gregory
ÿþW i n d o w s R e g i s t r y E d i t o r V e r s i o n 5 . 0 0 [ H K E Y _ C L A S S E S _ R O O T \ D i r e c t o r y \ s h e l l \ C y g C m d ] [EMAIL PROTECTED]"