* Tero Niemela (2004-09-14 19:06 +0200) > some of you may find this useful. I did the following, > works perfectly for me: > > Last line of ~/.zlogin is: > > [[ "$OSTYPE" = *cygwin* && $ARGC -eq 1 ]] && cd "$@" > > And this registry settings was added to Windows > registry: > > Windows Registry Editor Version 5.00 > > [HKEY_CLASSES_ROOT\Folder\shell\command] > @="Cygwin Here" > > [HKEY_CLASSES_ROOT\Folder\shell\command\command] > @="\"C:\\cygwin\\bin\\zsh.exe\" -l -s \"%1\"" > > With these, when I right-click a folder on Windows > Explorer, one available option is "Cygwin Here" that > start Cygwin+zsh and then cd to the right-clicked directory.
Thanks. For the rxvt junkies I have improved it (made worse?): REGEDIT4 [HKEY_CLASSES_ROOT\Folder\shell\command] @="&Zsh Prompt Here" [HKEY_CLASSES_ROOT\Folder\shell\command\command] @="C:\\cygwin\\bin\\rxvt.exe -e /bin/zsh --login -i -s \"%1\"" and... if [[ $OSTYPE = cygwin && $ARGC = 1 ]]; then cd $@; fi If you have a call to "screen" which is the only thing I have in my .zlogin) the screen call has to be the last statement. Thorsten -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/