Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Tue, 3 Oct 2000 07:07:52 -0400 From: Andy Philpotts X-Mailer: The Bat! (v1.46c) Reply-To: "andy.philpotts" Organization: Product Development X-Priority: 3 (Normal) Message-ID: <12660395864.20001003070752@calendarcentral.com> To: Evan McLean CC: cygwin AT sources DOT redhat DOT com Subject: Re: Bash Prompt Here In-reply-To: <5.0.0.25.0.20001003091115.009ecbd0@bastion.internal.datatask.com.au> References: <5 DOT 0 DOT 0 DOT 25 DOT 0 DOT 20001003091115 DOT 009ecbd0 AT bastion DOT internal DOT datatask DOT com DOT au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello Evan, This seems a little simpler to me: [HKEY_CLASSES_ROOT\Directory\shell\BashHere\command] d:\cygwin\bin\bash.exe --login -i No extra files or indirection needed Monday, October 02, 2000, 6:20:09 PM, you wrote: EM> Hi, EM> I've come up with a way to right-click on a directory in Windows Explorer EM> and have a menu option called "Bash Prompt Here" that will open a bash EM> prompt with the selected directory as the current one. It's a bit kludgy, EM> but I thought I'd submit it for any who may find it useful. Works under EM> Win98 and WinME. Be interested to know how it goes on NT variants. EM> This is using cygwin 1.x and assumes that your cygwin installation is in EM> "c:\cygwin" which is mounted as your root directory. Change to suite your EM> own environment. EM> Create a file "c:\cygwin\start_at.bat" with the following three lines: EM> @echo off EM> echo cd %1 > c:\cygwin\start_dir.txt EM> c:\cygwin\cygwin.bat EM> Add the following four lines to the end of "/etc/profile" (or EM> "c:\cygwin\etc\profile"): EM> if [ -f /start_dir.txt ] ; then EM> . /start_dir.txt EM> rm /start_dir.txt EM> fi EM> Lastly, apply the following registry patch file (which I name EM> "bash_prompt_here.reg"): EM> ----------snip---------- EM> REGEDIT4 EM> [HKEY_CLASSES_ROOT\Directory\shell\BashHere] EM> @="&Bash Prompt Here" EM> [HKEY_CLASSES_ROOT\Directory\shell\BashHere\command] EM> @="C:\\WINDOWS\\COMMAND.COM /E:4096 /c C:\\cygwin\\start_at.bat \"%L\"" EM> ----------snip---------- EM> That's it. If anybody can offer any improvements, let me know. EM> E. EM> -- EM> Want to unsubscribe from this list? EM> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com -- Andy Philpotts Senior Software Developer CalendarCentral Inc. [w] 919/654-6200 xt.155 [c] 919/656-1166 [e] andy DOT philpotts AT calendarcentral DOT com [www] www.calendarcentral.com Andy says: I don't suffer from insanity, I enjoy every minute of it. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com