1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 16:18:00 +00:00

utility: Remove redundant function clause in 'diff'

We don't use `function` clause in Prezto by convention.
This commit is contained in:
Indrajit Raychaudhuri 2021-05-10 16:31:56 -05:00 committed by Indrajit Raychaudhuri
parent d51e5ce40f
commit 6eb4021556

View File

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