Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-VirusChecked: Checked X-Env-Sender: Bill DOT Hughes AT cox DOT co DOT uk X-Msg-Ref: server-4.tower-14.messagelabs.com!1096278746!20006766 X-StarScan-Version: 5.2.10; banners=cox.co.uk,-,- X-Originating-IP: [62.172.235.173] Message-ID: From: "Hughes, Bill" To: cygwin AT cygwin DOT com Subject: RE: [INFO] Adding "Cygwin here" to Windows Explorer Date: Mon, 27 Sep 2004 10:50:56 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" X-IsSubscribed: yes Note-from-DJ: This may be spam Reini Urban wrote: > Henry S. Thompson schrieb: >> 1) In the registry entry: >> >> C:\cygwin\bin\rxvt.exe -fn 'Lucida Console-11' -geometry > 80x48 -sl 300 -cr '#8b4513' -bg '#fffff0' -e /usr/bin/bash -c > "XXX=\"%1\" bash --login -i" >> >> 2) In my .bash_profile >> >> if [[ "x$XXX" != "x" ]] >> then >> cd "$XXX" >> unset XXX >> fi >> >> This is a moderately embarassing/messy hack -- can anyone do better? > > I use a similar scheme since the good old b20 days. > Just not with the XXX name and not with a subshell. > (I put the $PWD arg into a temp file in the cygwin.bat > starter, which I > pickup at .profile) > And not for the Explorer (which I don't use), but for a > TotalCmd button. > To open some shell like bash, rxvt, ksh, 4nt in the current dir > (optinally specified by some dir arg). > A keyboard shortcut is also useful. I don't want to risk cgfs ire but, what's wrong with [HKEY_CLASSES_ROOT\Directory\shell\rxvt] @="rxvt" [HKEY_CLASSES_ROOT\Directory\shell\rxvt\command] @="D:\\cygwin\\bin\\run.exe rxvt -name rxvt0 -e /usr/bin/bash --login -c \"cd '%1' ; exec /bin/bash -rcfile ~/.bashrc\"" (obviously with a rxvt0 section in .Xdefaults) Which doesn't require any changes to scripts? For what it's worth (not much, I know) I think this is probably better in a FAQ once a canonical answer has been agreed. This e-mail transmission is strictly confidential and intended solely for the person or organisation to whom it is addressed. It may contain privileged and confidential information and if you are not the intended recipient, you must not copy, distribute or take any action in reliance on it. If you have received this email in error, please reply to the sender as soon as possible and delete the message. Please note that we are able to, and reserve the right to, monitor e-mail communications passing through our network. The views expressed in this email are not that of the company unless specified within the message. The inclusion of this footnote indicates that the mail message and any attachments have been checked for the presence of known viruses. If you have any comments regarding our policy please direct them to postmaster AT cox DOT co DOT uk ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________ -- 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/