Skip to content

Instantly share code, notes, and snippets.

@Zeex
Created January 24, 2013 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zeex/4621980 to your computer and use it in GitHub Desktop.
Save Zeex/4621980 to your computer and use it in GitHub Desktop.
Open Cygwin shell via Explorer context menu
; You will also have to edit C:\cygwin\Cygwin.bat and append %* to the bash command line
; in order to make the shell open in current directory rather than $HOME.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\cygwin_shell]
"Icon"=hex(2):43,00,3a,00,5c,00,63,00,79,00,67,00,77,00,69,00,6e,00,5c,00,43,\
00,79,00,67,00,77,00,69,00,6e,00,2e,00,69,00,63,00,6f,00,00,00
@="Open &Cygwin shell here"
[HKEY_CLASSES_ROOT\Directory\shell\cygwin_shell\command]
@="C:\\cygwin\\Cygwin.bat -c \"cd '%V' ; exec /bin/bash -rcfile ~/.bashrc\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\cygwin_shell]
"Icon"=hex(2):43,00,3a,00,5c,00,63,00,79,00,67,00,77,00,69,00,6e,00,5c,00,43,\
00,79,00,67,00,77,00,69,00,6e,00,2e,00,69,00,63,00,6f,00,00,00
@="Open &Cygwin shell here"
[HKEY_CLASSES_ROOT\Directory\Background\shell\cygwin_shell\command]
@="C:\\cygwin\\Cygwin.bat -c \"cd '%V' ; exec /bin/bash -rcfile ~/.bashrc\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment