public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Cygwin Shell Here
@ 2004-03-01  2:11 Gregory Borota
  0 siblings, 0 replies; 5+ messages in thread
From: Gregory Borota @ 2004-03-01  2:11 UTC (permalink / raw)
  To: Cygwin List

[-- Attachment #1: Type: text/plain, Size: 776 bytes --]

In Windows Explorer I want to add a "CYGWIN Shell" context menu option 
on file system folders, giving me a quick way to open a Cygwin window 
pointing at the selected folder. This is what I came up with:

1. In the cygwin.bat file I add the line

set __CYG_PATH_=%~1

(somewhere before 'bash --login -i' line)


2. In my .bash_profile I add the line:

cd "$__CYG_PATH_"


3. I add to the registry the following lines:

[HKEY_CLASSES_ROOT\Directory\shell\CygCmd]
@="CYGWIN Shell"

[HKEY_CLASSES_ROOT\Directory\shell\CygCmd\command]
@="C:\\cygwin\\cygwin.bat \"%1\""

[HKEY_CLASSES_ROOT\Drive\shell\CygCmd]
@="CYGWIN Shell"

[HKEY_CLASSES_ROOT\Drive\shell\CygCmd\command]
@="C:\\cygwin\\cygwin.bat \"%1\""


I wonder if there isn't a simpler and nicer way to do this?

Gregory

[-- Attachment #2: Cygwin.reg.txt --]
[-- Type: text/plain, Size: 674 bytes --]

ÿþW\0i\0n\0d\0o\0w\0s\0 \0R\0e\0g\0i\0s\0t\0r\0y\0 \0E\0d\0i\0t\0o\0r\0 \0V\0e\0r\0s\0i\0o\0n\0 \05\0.\00\00\0\r\0
\0\r\0
\0[\0H\0K\0E\0Y\0_\0C\0L\0A\0S\0S\0E\0S\0_\0R\0O\0O\0T\0\\0D\0i\0r\0e\0c\0t\0o\0r\0y\0\\0s\0h\0e\0l\0l\0\\0C\0y\0g\0C\0m\0d\0]\0\r\0
\0@\0=\0"\0C\0Y\0G\0W\0I\0N\0 \0S\0h\0e\0l\0l\0"\0\r\0
\0\r\0
\0[\0H\0K\0E\0Y\0_\0C\0L\0A\0S\0S\0E\0S\0_\0R\0O\0O\0T\0\\0D\0i\0r\0e\0c\0t\0o\0r\0y\0\\0s\0h\0e\0l\0l\0\\0C\0y\0g\0C\0m\0d\0\\0c\0o\0m\0m\0a\0n\0d\0]\0\r\0
\0@\0=\0"\0C\0:\0\\0\\0c\0y\0g\0w\0i\0n\0\\0\\0c\0y\0g\0w\0i\0n\0.\0b\0a\0t\0 \0\\0"\0%\01\0\\0"\0"\0\r\0
\0\r\0
\0[\0H\0K\0E\0Y\0_\0C\0L\0A\0S\0S\0E\0S\0_\0R\0O\0O\0T\0\\0D\0r\0i\0v\0e\0\\0s\0h\0e\0l\0l\0\\0C\0y\0g\0C\0m\0d\0]\0\r\0
\0@\0=\0"\0C\0Y\0G\0W\0I\0N\0 \0S\0h\0e\0l\0l\0"\0\r\0
\0\r\0
\0[\0H\0K\0E\0Y\0_\0C\0L\0A\0S\0S\0E\0S\0_\0R\0O\0O\0T\0\\0D\0r\0i\0v\0e\0\\0s\0h\0e\0l\0l\0\\0C\0y\0g\0C\0m\0d\0\\0c\0o\0m\0m\0a\0n\0d\0]\0\r\0
\0@\0=\0"\0C\0:\0\\0\\0c\0y\0g\0w\0i\0n\0\\0\\0c\0y\0g\0w\0i\0n\0.\0b\0a\0t\0 \0\\0"\0%\01\0\\0"\0"\0\r\0
\0

[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cygwin Shell Here
  2004-03-01  2:14 Gregory Borota
@ 2004-03-01  2:19 ` Larry Hall
  0 siblings, 0 replies; 5+ messages in thread
From: Larry Hall @ 2004-03-01  2:19 UTC (permalink / raw)
  To: Gregory Borota, cygwin

At 09:14 PM 2/29/2004, Gregory Borota you wrote:
>In Windows Explorer I want to add a "CYGWIN Shell" context menu option on file system folders, giving me a quick way to open a Cygwin window pointing at the selected folder. This is what I came up with:


<snip>


>I wonder if there isn't a simpler and nicer way to do this?


Do you Google?  You'll find lots of discussion about how this can be
done in the email archives.  The topic has come up a few times in the 
past.



--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Cygwin Shell Here
@ 2004-03-01  2:14 Gregory Borota
  2004-03-01  2:19 ` Larry Hall
  0 siblings, 1 reply; 5+ messages in thread
From: Gregory Borota @ 2004-03-01  2:14 UTC (permalink / raw)
  To: cygwin

In Windows Explorer I want to add a "CYGWIN Shell" context menu option 
on file system folders, giving me a quick way to open a Cygwin window 
pointing at the selected folder. This is what I came up with:

1. In the cygwin.bat file I add the line

set __CYG_PATH_=%~1

(somewhere before 'bash --login -i' line)


2. In my .bash_profile I add the line:

cd "$__CYG_PATH_"


3. I add to the registry the following lines:

[HKEY_CLASSES_ROOT\Directory\shell\CygCmd]
@="CYGWIN Shell"

[HKEY_CLASSES_ROOT\Directory\shell\CygCmd\command]
@="C:\\cygwin\\cygwin.bat \"%1\""

[HKEY_CLASSES_ROOT\Drive\shell\CygCmd]
@="CYGWIN Shell"

[HKEY_CLASSES_ROOT\Drive\shell\CygCmd\command]
@="C:\\cygwin\\cygwin.bat \"%1\""


I wonder if there isn't a simpler and nicer way to do this?

Gregory

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cygwin shell here
  2003-10-10 16:12 Cygwin shell here bob
@ 2003-10-10 16:50 ` Gerrit P. Haase
  0 siblings, 0 replies; 5+ messages in thread
From: Gerrit P. Haase @ 2003-10-10 16:50 UTC (permalink / raw)
  To: bob; +Cc: cygwin

bob wrote:

> I have looked, but cannot find how to do this.  I would like to add a
> right-click option to "Open cygwin shell here" for both folders and 
> files.  What is the registry entry I should use to accomplish this in 
> win xp?


http://anfaenger.de/cygwin/CygwinPromptHere/

Gerrit
-- 
=^..^=                                     http://nyckelpiga.de/donate.html


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Cygwin shell here
@ 2003-10-10 16:12 bob
  2003-10-10 16:50 ` Gerrit P. Haase
  0 siblings, 1 reply; 5+ messages in thread
From: bob @ 2003-10-10 16:12 UTC (permalink / raw)
  To: cygwin

I have looked, but cannot find how to do this.  I would like to add  a 
right-click option to "Open cygwin shell here" for both folders and 
files.  What is the registry entry I should use to accomplish this in 
win xp?



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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-03-01  2:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-01  2:11 Cygwin Shell Here Gregory Borota
  -- strict thread matches above, loose matches on Subject: below --
2004-03-01  2:14 Gregory Borota
2004-03-01  2:19 ` Larry Hall
2003-10-10 16:12 Cygwin shell here bob
2003-10-10 16:50 ` Gerrit P. Haase

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).