From e07fd052d7e6f02c0037f056a7a2069a7fac1c0d Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Mon, 10 May 2021 16:35:26 -0500 Subject: [PATCH] utility: Simplify conditional block for 'make' helper Further, remove redundant `function` clause as per Prezto convention. --- modules/utility/functions/make | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/modules/utility/functions/make b/modules/utility/functions/make index 5ebab05..7cda8a6 100644 --- a/modules/utility/functions/make +++ b/modules/utility/functions/make @@ -5,16 +5,13 @@ # Sorin Ionescu # -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 + +# }