delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/04/13/01:05:44

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Ross Smith" <ross DOT smith AT pobox DOT com>
To: "Matthew O. Persico" <persicom AT acedsl DOT com>, "cygwin" <cygwin AT cygwin DOT com>
Subject: RE: Bash Prompt Here?
Date: Thu, 12 Apr 2001 22:05:02 -0700
Message-ID: <NDBBJINIMKJKPGEBBJLKAEECDJAA.ross.smith@pobox.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
In-Reply-To: <3AD6723F.F72A0F73@acedsl.com>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

------=_NextPart_000_0049_01C0C39C.9F6C18F0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

> From: Matthew O. Persico
>
> Powertoys puts a Dos Prompt Here option on rightclick popup menus. I've
> searched the archives, but I cannot find how it was done for Cygwin.
> Does anyone know?

This works for me.  You may need to change the c:\cygwin if you've installed
cygwin somewhere else.

I've also attached it.

Lemme know if it works for you too.

If it's generally applicable, maybe cygwin will include it in the standard
distro.

-Ross

;
; "Bash Prompt Here"
;
; Copyright 2001 Ross Smith
; Licensed under the LGPL (http://www.gnu.org/copyleft/lesser.txt)

[version]
signature="$CHICAGO$"

[BashHereInstall]
CopyFiles = BashHere.Files.Inf
AddReg    = BashHere.Reg

[DefaultInstall]
CopyFiles = BashHere.Files.Inf
AddReg    = BashHere.Reg

[DefaultUnInstall]
DelFiles  = BashHere.Files.Inf
DelReg    = BashHere.Reg

[SourceDisksNames]
55="Bash Prompt Here","",1

[SourceDisksFiles]
BashHere.INF=55

[DestinationDirs]
BashHere.Files.Inf = 17

[BashHere.Files.Inf]
BashHere.INF

[BashHere.Reg]
HKLM,%UDHERE%,DisplayName,,"%BashHereName%"
HKLM,%UDHERE%,UninstallString,,"rundll32.exe
syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132
%17%\BashHere.inf"
HKCR,Directory\Shell\BashHere,,,"%BashHereAccel%"
HKCR,Directory\Shell\BashHere\command,,,"c:\cygwin\bin\bash --login -i -c
'cd `cygpath -u ""%1""`; bash -i'"
HKCR,Drive\Shell\BashHere,,,"%BashHereAccel%"
HKCR,Drive\Shell\BashHere\command,,,"c:\cygwin\bin\bash --login -i -c 'cd
`cygpath -u ""%1""`; bash -i'"

[Strings]
BashHereName="Bash Prompt Here"
BashHereAccel="&Bash Prompt Here"
UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\BashHere"

------=_NextPart_000_0049_01C0C39C.9F6C18F0
Content-Type: application/octet-stream;
	name="bashhere.inf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="bashhere.inf"

;
; "Bash Prompt Here"
;
; Copyright 2001 Ross Smith
; Licensed under the LGPL (http://www.gnu.org/copyleft/lesser.txt)

[version]
signature=3D"$CHICAGO$"

[BashHereInstall]
CopyFiles =3D BashHere.Files.Inf
AddReg    =3D BashHere.Reg

[DefaultInstall]
CopyFiles =3D BashHere.Files.Inf
AddReg    =3D BashHere.Reg

[DefaultUnInstall]
DelFiles  =3D BashHere.Files.Inf
DelReg    =3D BashHere.Reg

[SourceDisksNames]
55=3D"Bash Prompt Here","",1

[SourceDisksFiles]
BashHere.INF=3D55

[DestinationDirs]
BashHere.Files.Inf =3D 17

[BashHere.Files.Inf]
BashHere.INF

[BashHere.Reg]
HKLM,%UDHERE%,DisplayName,,"%BashHereName%"
HKLM,%UDHERE%,UninstallString,,"rundll32.exe =
syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 =
%17%\BashHere.inf"
HKCR,Directory\Shell\BashHere,,,"%BashHereAccel%"
HKCR,Directory\Shell\BashHere\command,,,"c:\cygwin\bin\bash --login -i =
-c 'cd `cygpath -u ""%1""`; bash -i'"
HKCR,Drive\Shell\BashHere,,,"%BashHereAccel%"
HKCR,Drive\Shell\BashHere\command,,,"c:\cygwin\bin\bash --login -i -c =
'cd `cygpath -u ""%1""`; bash -i'"

[Strings]
BashHereName=3D"Bash Prompt Here"
BashHereAccel=3D"&Bash Prompt Here"
UDHERE=3D"Software\Microsoft\Windows\CurrentVersion\Uninstall\BashHere"


------=_NextPart_000_0049_01C0C39C.9F6C18F0
Content-Type: text/plain; charset=us-ascii

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
------=_NextPart_000_0049_01C0C39C.9F6C18F0--

- Raw text -


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