delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
To: | cygwin AT cygwin DOT com |
From: | Thorsten Kampe <thorsten AT thorstenkampe DOT de> |
Subject: | Re: [INFO] Adding "Cygwin here" to Windows Explorer |
Date: | Sat, 18 Sep 2004 13:49:37 +0200 |
Lines: | 42 |
Message-ID: | <v189njr02xk3.dlg@thorstenkampe.de> |
References: | <20040914170613 DOT 40672 DOT qmail AT web61307 DOT mail DOT yahoo DOT com> |
Mime-Version: | 1.0 |
X-Complaints-To: | usenet AT sea DOT gmane DOT org |
X-Gmane-NNTP-Posting-Host: | isi-dial-142-159.isionline-dialin.de |
User-Agent: | 40tude_Dialog/2.0.12.1de |
X-IsSubscribed: | yes |
* 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |