mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 05:01:17 +08:00 
			
		
		
		
	Adding quotes to git completion discovery path
Previously, spaces in the path would result in wto separate errouneous paths being parsed. This fixes that issue.
This commit is contained in:
		
							parent
							
								
									9eaf51107f
								
							
						
					
					
						commit
						3d670c0bfc
					
				@ -30,7 +30,7 @@ if [ -z "$script" ]; then
 | 
			
		||||
	local -a locations
 | 
			
		||||
	local e
 | 
			
		||||
	locations=(
 | 
			
		||||
		$(dirname ${funcsourcetrace[1]%:*})/git-completion.bash
 | 
			
		||||
		"$(dirname ${funcsourcetrace[1]%:*})/git-completion.bash"
 | 
			
		||||
		'/etc/bash_completion.d/git' # fedora, old debian
 | 
			
		||||
		'/usr/share/bash-completion/completions/git' # arch, ubuntu, new debian
 | 
			
		||||
		'/usr/share/bash-completion/git' # gentoo
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user