Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Andrew DeFaria <Andrew@DeFaria.com>
Newsgroups: gmane.os.cygwin
Subject: Re: Bash shell extension ?
Date: Fri, 12 Apr 2002 09:34:25 -0700
Lines: 31
Message-ID: <3CB70C91.204@DeFaria.com>
References: <019201c1e1cf$7026dec0$52b4fc3e@nori>
NNTP-Posting-Host: dsl-64-195-250-225.telocity.com
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: main.gmane.org 1018629309 12472 64.195.250.225 (12 Apr 2002 16:35:09 GMT)
X-Complaints-To: usenet@main.gmane.org
NNTP-Posting-Date: Fri, 12 Apr 2002 16:35:09 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2
X-Accept-Language: en,ru

Sam Edge wrote:

> [HKEY_CLASSES_ROOT\Directory\shell\BashHere]
> @="&Bash Prompt Here"
> [HKEY_CLASSES_ROOT\Directory\shell\BashHere\command]
> @="c:\\cygwin\\bin\\bash.exe -c \"cd '%1' ; exec /bin/bash\""
> [HKEY_CLASSES_ROOT\Drive\shell\BashHere]
> @="&Bash Prompt Here"
> [HKEY_CLASSES_ROOT\Drive\shell\BashHere\command]
> @="c:\\cygwin\\bin\\bash.exe -c \"cd '%1' ; exec /bin/bash\""

Personally I'm fond of "Bash this!" instead of "Bash Prompt Here" :-) !

Also, the above does not handle the issue of the user's startup scripts. 
Here's what I have:

HKEY_CLASSES_ROOT\Directory\shell\BashHere]
@="B&ash this!"
[HKEY_CLASSES_ROOT\Directory\shell\BashHere\command]
@="rxvt -e bash -c \"cd '%1';exec bash -rcfile ~/.bash_login\""
[HKEY_CLASSES_ROOT\Drive\shell\BashHere]
@="B&ash this!"
[HKEY_CLASSES_ROOT\Drive\shell\BashHere\command]
@="rxvt -e bash -c \"cd '%1';exec bash -rcfile ~/.bash_login\""

Note if you do not wish to use rxvt then simply remove the "rxvt -e " 
portion. This also makes the assumption that Cygwin's bin is in your 
Windows System Environment variable PATH (which is should be, especially 
if you use inetd) and that you've appropriately named your bash startup 
stuff .bash




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

