How do I add Cygwin to folder context menus?

From the mailing list for the Cygwin project:

To have Windows Explorer start a Bash console window in any directory that you right click on, save the following lines to a file with a .reg extension, change the command lines to point to where bash.exe is installed, and run the file. You can change the string that appears in the context menu by changing"&Bash This" to your preferred string. The character after'&' is the shortcut key for the command. You can also download my pre-made .reg file here.


@="&Bash This"

@="c:\\cygwin\\bin\\bash.exe –login -c \"cd '%1' ; exec /bin/bash -rcfile ~/.bashrc\""

@="&Bash This"

@="c:\\cygwin\\bin\\bash.exe –login -c \"cd '%1' ; exec /bin/bash -rcfile ~/.bashrc\""

Leave a Reply

Your email address will not be published. Required fields are marked *