Skip to content

Instantly share code, notes, and snippets.

@benoit-dubreuil
Last active November 25, 2020 22:17
Show Gist options
  • Save benoit-dubreuil/171b9cea4c548b4ba3aa38d26a73d399 to your computer and use it in GitHub Desktop.
Save benoit-dubreuil/171b9cea4c548b4ba3aa38d26a73d399 to your computer and use it in GitHub Desktop.
Manually Add or Remove Git-Bash From Scoop in the Right-Click "Open With Git Bash" Context Menu on Windows 10

Manually Add or Remove Git-Bash From Scoop in the Right-Click "Open With Git Bash" Context Menu on Windows 10

add-git-bash-to-explorer.reg

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\git_bash]
@="Open with Git Ba&sh"
"Icon"="\"%%HOMEDRIVE%%%%HOMEPATH%%\\scoop\\apps\\git-with-openssh\\current\\git-bash.exe\",0"

[HKEY_CLASSES_ROOT\Directory\shell\git_bash\command]
@="cmd.exe /s /c start \"\" /D\"%1\" \"%%HOMEDRIVE%%%%HOMEPATH%%\\scoop\\apps\\git-with-openssh\\current\\git-bash.exe\""

remove-git-bash-from-explorer.reg

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\directory\shell\git_bash]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment