Skip to content

Instantly share code, notes, and snippets.

@P7h
Created June 27, 2013 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save P7h/5879848 to your computer and use it in GitHub Desktop.
Save P7h/5879848 to your computer and use it in GitHub Desktop.
Windows specific registry snippet: This gist is useful for getting Cygwin (http://www.cygwin.com) on right click of a folder, drive or background. This gist assumes that Cygwin is installed and accessible from C:\Cygwin\Cygwin.bat and the icon for the same is C:\Cygwin\Cygwin.ico. This gist assumes that you have run the following in a Cygwin win…
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\cygwin_bash]
@="Bash"
"Icon"="C:/Cygwin/Cygwin.ico,0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\cygwin_bash\Command]
@="C:\\Cygwin\\bin\\bash -c \"/bin/xhere /bin/bash.exe '%v'\""
[HKEY_CLASSES_ROOT\Directory\shell\cygwin_bash]
@="Bash"
"Icon"="C:/Cygwin/Cygwin.ico,0"
[HKEY_CLASSES_ROOT\Directory\shell\cygwin_bash\command]
@=hex(2):43,00,3a,00,5c,00,43,00,79,00,67,00,77,00,69,00,6e,00,5c,00,62,00,69,\
00,6e,00,5c,00,62,00,61,00,73,00,68,00,20,00,2d,00,63,00,20,00,22,00,2f,00,\
62,00,69,00,6e,00,2f,00,78,00,68,00,65,00,72,00,65,00,20,00,2f,00,62,00,69,\
00,6e,00,2f,00,62,00,61,00,73,00,68,00,2e,00,65,00,78,00,65,00,20,00,27,00,\
25,00,4c,00,27,00,22,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\cygwin_bash]
@="Bash"
"Icon"="C:/Cygwin/Cygwin.ico,0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell\cygwin_bash\Command]
@="C:\\Cygwin\\bin\\bash -c \"/bin/xhere /bin/bash.exe '%v'\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cygwin_bash]
@="Bash"
"Icon"="C:/Cygwin/Cygwin.ico,0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cygwin_bash\command]
@=hex(2):43,00,3a,00,5c,00,43,00,79,00,67,00,77,00,69,00,6e,00,5c,00,62,00,69,\
00,6e,00,5c,00,62,00,61,00,73,00,68,00,20,00,2d,00,63,00,20,00,22,00,2f,00,\
62,00,69,00,6e,00,2f,00,78,00,68,00,65,00,72,00,65,00,20,00,2f,00,62,00,69,\
00,6e,00,2f,00,62,00,61,00,73,00,68,00,2e,00,65,00,78,00,65,00,20,00,27,00,\
25,00,4c,00,27,00,22,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\cygwin_bash]
@="Bash"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\cygwin_bash\command]
@=hex(2):43,00,3a,00,5c,00,43,00,79,00,67,00,77,00,69,00,6e,00,5c,00,62,00,69,\
00,6e,00,5c,00,62,00,61,00,73,00,68,00,20,00,2d,00,63,00,20,00,22,00,2f,00,\
62,00,69,00,6e,00,2f,00,78,00,68,00,65,00,72,00,65,00,20,00,2f,00,62,00,69,\
00,6e,00,2f,00,62,00,61,00,73,00,68,00,2e,00,65,00,78,00,65,00,20,00,27,00,\
25,00,4c,00,27,00,22,00,00,00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment