Browse Source

utility: Simplify conditional block for 'make' helper

Further, remove redundant `function` clause as per Prezto convention.
master
Indrajit Raychaudhuri 3 years ago committed by Indrajit Raychaudhuri
parent
commit
68419e8f87
  1. 15
      modules/utility/functions/make

15
modules/utility/functions/make

@ -5,16 +5,13 @@
# Sorin Ionescu <sorin.ionescu@gmail.com> # Sorin Ionescu <sorin.ionescu@gmail.com>
# #
function make { # function make {
if zstyle -t ':prezto:module:utility:make' color; then
if (( $+commands[colormake] )); then if zstyle -t ':prezto:module:utility:make' color \
colormake "$@" && (( $+commands[colormake] )); then
else command colormake "$@"
command make "$@"
fi
else else
command make "$@" command make "$@"
fi fi
}
make "$@" # }

Loading…
Cancel
Save