Browse Source

utility: Simplify conditional block for 'make' helper

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

15
modules/utility/functions/make

@ -5,16 +5,13 @@ @@ -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
# function make {
if zstyle -t ':prezto:module:utility:make' color \
&& (( $+commands[colormake] )); then
command colormake "$@"
else
command make "$@"
fi
}
make "$@"
# }

Loading…
Cancel
Save