mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-01 06:11:20 +00:00
Changes:
- Adds two .reg scripts:
1. install-context.reg
adds context-menu entries for 'Git GUI Here' and 'Git Bash Here'
2. install-file-associations.reg
associates .git* files as plain-text, and associates .sh with Bash
Notes:
- Closes: #4462
- The file-naming convention and post-install script were based on the
`7zip.json`, `vim.json` and `pwsh.json` manifest files.
- The registry keys set by the .reg files are identical to those set by
`[install.iss][1]` in the `[git-for-windows/build-extra][2]` repo.
[1]: <https://github.com/git-for-windows/build-extra/blobl/main/installer/install.iss>
[2]: <https://github.com/git-for-windows/build-extra>
40 lines
1.3 KiB
Reg
40 lines
1.3 KiB
Reg
Windows Registry Editor Version 5.00
|
|
|
|
; -----------------------------------------------------------------------------
|
|
; associate .git* configuration files with the default text editor
|
|
; -----------------------------------------------------------------------------
|
|
|
|
[HKEY_CURRENT_USER\Software\Classes\.gitattributes]
|
|
@="txtfile"
|
|
"Content Type"="text/plain"
|
|
"PerceivedType"="text"
|
|
|
|
[HKEY_CURRENT_USER\Software\Classes\.gitignore]
|
|
@="txtfile"
|
|
"Content Type"="text/plain"
|
|
"PerceivedType"="text"
|
|
|
|
[HKEY_CURRENT_USER\Software\Classes\.gitmodules]
|
|
@="txtfile"
|
|
"Content Type"="text/plain"
|
|
"PerceivedType"="text"
|
|
|
|
; -----------------------------------------------------------------------------
|
|
; associate '.sh' files to be run with git bash
|
|
; -----------------------------------------------------------------------------
|
|
|
|
[HKEY_CURRENT_USER\Software\Classes\.sh]
|
|
@="sh_auto_file"
|
|
|
|
[HKEY_CURRENT_USER\Software\Classes\sh_auto_file]
|
|
@="Shell Script"
|
|
|
|
[HKEY_CURRENT_USER\Software\Classes\sh_auto_file\DefaultIcon]
|
|
@="%SystemRoot%\\System32\\shell32.dll,-153"
|
|
|
|
[HKEY_CURRENT_USER\Software\Classes\sh_auto_file\shell\open\command]
|
|
@="\"$git_root\\git-bash.exe\" --no-cd \"%L\" %*"
|
|
|
|
[HKEY_CURRENT_USER\Software\Classes\sh_auto_file\ShellEx\DropHandler]
|
|
@="{60254CA5-953B-11CF-8C96-00AA00B8708C}"
|