mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-11-04 07:41: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>
		
	
			
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Reg
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Reg
		
	
	
	
	
	
Windows Registry Editor Version 5.00
 | 
						|
 | 
						|
; -----------------------------------------------------------------------------
 | 
						|
;  context menu entry  'Git GUI Here'
 | 
						|
; -----------------------------------------------------------------------------
 | 
						|
 | 
						|
[HKEY_CURRENT_USER\Software\Classes\Directory\background\shell\git_gui]
 | 
						|
@="Git &GUI Here"
 | 
						|
"Icon"="$git_root\\cmd\\git-gui.exe"
 | 
						|
 | 
						|
[HKEY_CURRENT_USER\Software\Classes\Directory\background\shell\git_gui\command]
 | 
						|
@="\"$git_root\\cmd\\git-gui.exe\" \"--working-dir\" \"%v.\""
 | 
						|
 | 
						|
[HKEY_CURRENT_USER\Software\Classes\Directory\shell\git_gui]
 | 
						|
@="Git &GUI Here"
 | 
						|
"Icon"="$git_root\\cmd\\git-gui.exe"
 | 
						|
 | 
						|
[HKEY_CURRENT_USER\Software\Classes\Directory\shell\git_gui\command]
 | 
						|
@="\"$git_root\\cmd\\git-gui.exe\" \"--working-dir\" \"%1\""
 | 
						|
 | 
						|
[HKEY_CURRENT_USER\Software\Classes\LibraryFolder\background\shell\git_gui]
 | 
						|
@="Git &GUI Here"
 | 
						|
"Icon"="$git_root\\cmd\\git-gui.exe"
 | 
						|
 | 
						|
[HKEY_CURRENT_USER\Software\Classes\LibraryFolder\background\shell\git_gui\command]
 | 
						|
@="\"$git_root\\cmd\\git-gui.exe\" \"--working-dir\" \"%v.\""
 | 
						|
 | 
						|
; -----------------------------------------------------------------------------
 | 
						|
;  context menu entry  'Git Bash Here'
 | 
						|
; -----------------------------------------------------------------------------
 | 
						|
 | 
						|
[HKEY_CURRENT_USER\Software\Classes\Directory\background\shell\git_shell]
 | 
						|
@="Git Ba&sh Here"
 | 
						|
"Icon"="$git_root\\git-bash.exe"
 | 
						|
 | 
						|
[HKEY_CURRENT_USER\Software\Classes\Directory\background\shell\git_shell\command]
 | 
						|
@="\"$git_root\\git-bash.exe\" \"--cd=%v.\""
 | 
						|
 | 
						|
[HKEY_CURRENT_USER\Software\Classes\Directory\shell\git_shell]
 | 
						|
@="Git Ba&sh Here"
 | 
						|
"Icon"="$git_root\\git-bash.exe"
 | 
						|
 | 
						|
[HKEY_CURRENT_USER\Software\Classes\Directory\shell\git_shell\command]
 | 
						|
@="\"$git_root\\git-bash.exe\" \"--cd=%1\""
 | 
						|
 | 
						|
[HKEY_CURRENT_USER\Software\Classes\LibraryFolder\background\shell\git_shell]
 | 
						|
@="Git Ba&sh Here"
 | 
						|
"Icon"="$git_root\\git-bash.exe"
 | 
						|
 | 
						|
[HKEY_CURRENT_USER\Software\Classes\LibraryFolder\background\shell\git_shell\command]
 | 
						|
@="\"$git_root\\git-bash.exe\" \"--cd=%v.\""
 |