Browse Source

utility: Remove redundant `function` clause in 'diff'

We don't use `function` clause in Prezto by convention.
master
Indrajit Raychaudhuri 3 years ago committed by Indrajit Raychaudhuri
parent
commit
9ec44c6a21
  1. 18
      modules/utility/functions/diff

18
modules/utility/functions/diff

@ -5,13 +5,13 @@ @@ -5,13 +5,13 @@
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
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
# }

Loading…
Cancel
Save