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-9.tower-14.messagelabs.com!1095437817!19361212 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: Is it possible to pass parameters to rxvt? Date: Fri, 17 Sep 2004 17:15:39 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-IsSubscribed: yes Hughes, Bill wrote: > Is it possible to pass a parameter to rxvt to start bash up > in a specified > folder? > > I suspect I don't know enough to construct the proper string. > > I normally start rxvt from a keyboard shortcut to the command > D:\cygwin\bin\run.exe rxvt -name 17 -e /usr/bin/bash --login -i > > which works fine. > > I also have a registry entry to start cygwin in a specified > folder from the > explorer context menu, set up so: > REGEDIT4 > > [HKEY_CLASSES_ROOT\Directory\shell\BashHere] > @="bash here" > [HKEY_CLASSES_ROOT\Directory\shell\BashHere\command] > @="D:\\cygwin\\bin\\bash.exe --login -c \"cd '%1' ; exec /bin/bash > -rcfile ~/.bashrc\"" > > which also works fine, it's just that I'd rather invoke rxvt. Sorry to reply to myself but I realised what I was doing wrong, this works: [HKEY_CLASSES_ROOT\Directory\shell\rxvt] @="rxvt" [HKEY_CLASSES_ROOT\Directory\shell\rxvt\command] @="D:\\cygwin\\bin\\run.exe rxvt -name 17 -e /usr/bin/bash --login -c \"cd '%1' ; exec /bin/bash -rcfile ~/.bashrc\"" sorry for the waste of time, bandwidth etc: PEBKAC. Bill -- ___ oo // \\ "De Chelonian Mobile" (_,\/ \_/ \ TortoiseSVN \ \_/_\_/> The coolest Interface to (Sub)Version Control /_/ \_\ http://tortoisesvn.tigris.org 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/