This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [INFO] Adding "Cygwin here" to Windows Explorer

* 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?):


@="&Zsh Prompt Here"

@="C:\\cygwin\\bin\\rxvt.exe -e /bin/zsh --login -i -s \"%1\""


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.


Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]