Skip to content

Instantly share code, notes, and snippets.

@miebach
Created July 2, 2011 06:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miebach/1059810 to your computer and use it in GitHub Desktop.
Save miebach/1059810 to your computer and use it in GitHub Desktop.
"cygwin here" registry patch, CygwinHere0.1.3 see http://software.ellerton.net/cygwin/
Note: Use the first reg-file if the cygwin dir is c:\ and the other on if cygwin is installed to c:\cygwin\ - otherwise adjust the path in the file.
See also https://gist.github.com/1641943 for unattended cygwin update and package install
----
README
NAME:
Cygwin Here
WEBSITE:
http://software.ellerton.net/cygwin/
PURPOSE:
Simple solution to starting a cygwin prompt in a specific directory.
INSTALLATION:
Either double click the ShellHere.reg file or import it using menus
form within regedit.
USAGE:
Using Windows Explorer, right-click on a directory or drive and
select "Cygwin Here" from the context menu.
UNINSTALLATION
At the moment you have to navigate to the keys shown in the .reg file
and remove them manually
RELEASE NOTES
0.1.3
Very quick and dirty, based on newsgroup/mailing list postings.
No automatic uninstall.
Seems to effectively log in twice, which is unattractive but doesn't
matter too much.
Uses DOS icon (ie not Cygwin icon) which is annoying but also doesn't
matter too much.
a.ellerton@mic.com.au, Milano, 02OCT19
REGEDIT4
[HKEY_CLASSES_ROOT\Directory\shell\CygwinHere]
@="&Cygwin Here"
[HKEY_CLASSES_ROOT\Directory\shell\CygwinHere\command]
@="c:\\bin\\bash.exe --login -c \"cd '%1' ; exec /bin/bash -rcfile ~/.bashrc\""
[HKEY_CLASSES_ROOT\Drive\shell\CygwinHere]
@="&Cygwin Here"
[HKEY_CLASSES_ROOT\Drive\shell\CygwinHere\command]
@="c:\\bin\\bash.exe --login -c \"cd '%1' ; exec /bin/bash -rcfile ~/.bashrc\""
REGEDIT4
[HKEY_CLASSES_ROOT\Directory\shell\CygwinHere]
@="&Cygwin Here"
[HKEY_CLASSES_ROOT\Directory\shell\CygwinHere\command]
@="c:\\cygwin\\bin\\bash.exe --login -c \"cd '%1' ; exec /bin/bash -rcfile ~/.bashrc\""
[HKEY_CLASSES_ROOT\Drive\shell\CygwinHere]
@="&Cygwin Here"
[HKEY_CLASSES_ROOT\Drive\shell\CygwinHere\command]
@="c:\\cygwin\\bin\\bash.exe --login -c \"cd '%1' ; exec /bin/bash -rcfile ~/.bashrc\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment