From 6eb4021556ae65279ca5379ea1f8260b3d95d6a9 Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Mon, 10 May 2021 16:31:56 -0500 Subject: [PATCH] utility: Remove redundant `function` clause in 'diff' We don't use `function` clause in Prezto by convention. --- modules/utility/functions/diff | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/utility/functions/diff b/modules/utility/functions/diff index d614b28..4e08494 100644 --- a/modules/utility/functions/diff +++ b/modules/utility/functions/diff @@ -5,13 +5,13 @@ # Sorin Ionescu # -function diff { - if zstyle -t ':prezto:module:utility:diff' color \ - && (( $+commands[colordiff] )); then - command colordiff "$@" - else - command diff "$@" - fi -} +# function diff { -diff "$@" +if zstyle -t ':prezto:module:utility:diff' color \ + && (( $+commands[colordiff] )); then + command colordiff "$@" +else + command diff "$@" +fi + +# }