delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/11/20:15:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <200204112014230738.52DD9195@mail.tranceambient.com>
References: <200204111817340629 DOT 5272981C AT mail DOT tranceambient DOT com>
<200204111959430022 DOT 52D02148 AT mail DOT tranceambient DOT com>
Date: Thu, 11 Apr 2002 20:14:23 -0400
From: "Adam" <cygwin AT tranceambient DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Bash shell extension ?
X-MDRemoteIP: 24.156.188.197
X-Return-Path: cygwin AT tranceambient DOT com
X-MDaemon-Deliver-To: cygwin AT cygwin DOT com

With the help of Larry Hall (thanks Larry), I have gotten this working like I
want .. 

Windows Registry Editor Version 5.00 

[HKEY_CLASSES_ROOT\Folder\shell\Bash Prompt] 

[HKEY_CLASSES_ROOT\Folder\shell\Bash Prompt\command]
@="bash.exe -c 'cd \"%1\"; exec bash'"


Add this to a .reg file and import it into your registry (I know this works for
Windows 2000, and I'm assuming the key is the same for other Windows as well).

It seems you might also have to mount the drives you want to use .. I did mine
like this:
mount -f c:/ /c
mount -f d:/ /d
.. etc

Then, right-click on any folder in Windows Explorer, and you will see "Bash
Prompt" somewhere in the Explorer menu. Click on that and you should get a Bash
window in the folder you clicked on. To edit the size like you want, click on
the title bar and go to Properties-->Layout and set it up however you want ..
When you hit OK, it will ask you if you want to save these settings for all
future windows with the same title (again, this might be a Windows 2000 thing
only) .. This way you don't have to edit the size every time ..

Now, if you want to be a little fancier, you could always use rxvt:
bash.exe -c 'cd "%1"; exec rxvt -sr -fn "Courier New" -sl 2500 -fg lightgrey
-geometry 120x60 -bg black -sb -e bash'

Read the rxvt manpage for options (there are a ton) .. 

Last, make sure your /cygwin/bin is in your Windows PATH, otherwise it won't
find your bash.exe .. 

Hope this helps others get this working as well .. Email me or the list (or
both) if you have ideas for enhancements .. :)
-Adam



--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019