Skip to content

Instantly share code, notes, and snippets.

@kevin-d-omara
Last active April 2, 2022 21:51
Show Gist options
  • Save kevin-d-omara/935deac93fd7a07cfa5d17ddf655d52e to your computer and use it in GitHub Desktop.
Save kevin-d-omara/935deac93fd7a07cfa5d17ddf655d52e to your computer and use it in GitHub Desktop.
Add Ubuntu Bash to the context menu for Windows 10.
Windows Registry Editor Version 5.00
; * Adds Ubuntu 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\ubuntubash]
@="Open Ubuntu Bash"
"Icon"="C:\\Program Files\\WindowsApps\\CanonicalGroupLimited.UbuntuonWindows_1604.2017.922.0_x64__79rhkp1fndgsc\\images\\icon.ico"
"Extended"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\ubuntubash\command]
@="bash"
; Context menu for right-clicking folders.
[HKEY_CLASSES_ROOT\Directory\shell\ubuntubash]
@="Open Ubuntu Bash"
"Icon"="C:\\Program Files\\WindowsApps\\CanonicalGroupLimited.UbuntuonWindows_1604.2017.922.0_x64__79rhkp1fndgsc\\images\\icon.ico"
"Extended"=""
[HKEY_CLASSES_ROOT\Directory\shell\ubuntubash\command]
@="cmd.exe /s /k pushd \"%V\" && bash"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment