mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 13:21:19 +08:00 
			
		
		
		
	fix(lib): fix diff --color argument check for BSD systems (#10269)
				
					
				
			This commit is contained in:
		
							parent
							
								
									6ac1ff6905
								
							
						
					
					
						commit
						f82aa81931
					
				@ -40,7 +40,7 @@ if [[ "$DISABLE_LS_COLORS" != "true" ]]; then
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# enable diff color if possible.
 | 
			
		||||
if command diff --color . . &>/dev/null; then
 | 
			
		||||
if command diff --color /dev/null /dev/null &>/dev/null; then
 | 
			
		||||
  alias diff='diff --color'
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user