mirror of
				https://github.com/dcarrillo/prezto.git
				synced 2025-11-04 08:39:08 +00:00 
			
		
		
		
	utility: Simplify conditional block for 'make' helper
Further, remove redundant `function` clause as per Prezto convention.
This commit is contained in:
		
				
					committed by
					
						
						Indrajit Raychaudhuri
					
				
			
			
				
	
			
			
			
						parent
						
							d3d79bbe74
						
					
				
				
					commit
					e07fd052d7
				
			@@ -5,16 +5,13 @@
 | 
			
		||||
#   Sorin Ionescu <sorin.ionescu@gmail.com>
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
function make {
 | 
			
		||||
  if zstyle -t ':prezto:module:utility:make' color; then
 | 
			
		||||
    if (( $+commands[colormake] )); then
 | 
			
		||||
      colormake "$@"
 | 
			
		||||
    else
 | 
			
		||||
      command make "$@"
 | 
			
		||||
    fi
 | 
			
		||||
  else
 | 
			
		||||
    command make "$@"
 | 
			
		||||
  fi
 | 
			
		||||
}
 | 
			
		||||
# function make {
 | 
			
		||||
 | 
			
		||||
make "$@"
 | 
			
		||||
if zstyle -t ':prezto:module:utility:make' color \
 | 
			
		||||
      && (( $+commands[colormake] )); then
 | 
			
		||||
  command colormake "$@"
 | 
			
		||||
else
 | 
			
		||||
  command make "$@"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user