Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dziban303/3ba89bd78e24f75bd2afd32f471cbbd8 to your computer and use it in GitHub Desktop.
Save dziban303/3ba89bd78e24f75bd2afd32f471cbbd8 to your computer and use it in GitHub Desktop.
Add Bash to the context menu for Windows 10.
Windows Registry Editor Version 5.00
; * Adds Bash to the extended context menu (shift + right-click).
; * If you prefer the regular context menu (right-click),
; delete both lines containing <"Extended"="">.
; Context menu for right-clicking the background of a directory or the desktop.
[HKEY_CLASSES_ROOT\Directory\Background\shell\Bash]
@="Open Bash window here"
"Extended"=""
"Icon"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,32,\
00,36,00,32,00,00,00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Bash\command]
@="bash"
; Context menu for right-clicking folders.
[HKEY_CLASSES_ROOT\Directory\shell\Bash]
@="Open Bash window here"
"Extended"=""
"Icon"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,32,\
00,36,00,32,00,00,00
[HKEY_CLASSES_ROOT\Directory\shell\Bash\command]
@="cmd.exe /s /k pushd \"%V\" && bash"
@dziban303
Copy link
Author

Added icon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment