mirror of
				https://github.com/dcarrillo/prezto.git
				synced 2025-11-04 12:09:08 +00:00 
			
		
		
		
	utility: Pipe diff output through colordiff Instead of aliasing
`colordiff` behaves better as `stdin` filter. This is useful in retaining color escape sequences when used with `less`.
This commit is contained in:
		
				
					committed by
					
						
						Indrajit Raychaudhuri
					
				
			
			
				
	
			
			
			
						parent
						
							866d5dfccd
						
					
				
				
					commit
					f3c92ffeb3
				
			@@ -9,7 +9,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
if zstyle -t ':prezto:module:utility:diff' color \
 | 
					if zstyle -t ':prezto:module:utility:diff' color \
 | 
				
			||||||
      && (( $+commands[colordiff] )); then
 | 
					      && (( $+commands[colordiff] )); then
 | 
				
			||||||
  command colordiff "$@"
 | 
					  command diff "$@" | colordiff
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
  command diff "$@"
 | 
					  command diff "$@"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user