Cygwin Shell Here
Gregory Borota
cygwin@sbcglobal.net
Mon Mar 1 02:11:00 GMT 2004
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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Cygwin.reg.txt
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040301/9255bc8c/attachment.txt>
-------------- next part --------------
--
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/
More information about the Cygwin
mailing list