mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 05:48:01 +00:00
utility: Remove redundant function
clause in 'diff'
We don't use `function` clause in Prezto by convention.
This commit is contained in:
parent
d51e5ce40f
commit
6eb4021556
@ -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…
Reference in New Issue
Block a user