Skip to content

Instantly share code, notes, and snippets.

@deskobj
Last active October 14, 2023 12:19
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 deskobj/44b3ef507ef56ef22a2d0b332a4f3e91 to your computer and use it in GitHub Desktop.
Save deskobj/44b3ef507ef56ef22a2d0b332a4f3e91 to your computer and use it in GitHub Desktop.
GitK-asStandardUser-OnDir.reg
REGEDIT4
; - or - Windows Registry Editor Version 5.00
; Registry files in format REGEDIT4 cannot contain Unicode characters with a code value greater 255.
; Read more: https://stackoverflow.com/questions/36785645
; One-liner copy:
; [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (new-object net.webclient).DownloadFile('https://gist.github.com/deskobj/44b3ef507ef56ef22a2d0b332a4f3e91/raw', "$env:temp\__GitK-asStandardUser-OnDir.reg") ; explorer "$env:temp"
; TODO: make one-liner run.
[HKEY_CLASSES_ROOT\Directory\Shell]
@="none"
[HKEY_CLASSES_ROOT\Directory\shell\_GitHistoryAll]
"Icon"="C:\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico"
"MUIVerb"="Git history --all"
"Position"="bottom"
[HKEY_CLASSES_ROOT\Directory\Background\shell\_GitHistoryAll]
"Icon"="C:\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico"
"MUIVerb"="Git history --all"
"Position"="bottom"
[HKEY_CLASSES_ROOT\Directory\shell\_GitHistoryAll\command]
@="C:\\Progra~1\\Git\\cmd\\gitk --all"
[HKEY_CLASSES_ROOT\Directory\Background\shell\_GitHistoryAll\command]
@="C:\\Progra~1\\Git\\cmd\\gitk --all"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment