1
0
Fork 0

[Fix #195] Fallback to the default command

pull/206/head
Sorin Ionescu 13 years ago
parent 7dc55a8304
commit e4be6d633f

@ -11,6 +11,8 @@ function diff {
command diff --unified "$@" | colordiff --difftype diffu
elif (( $+commands[git] )); then
git --no-pager diff --color=auto --no-ext-diff --no-index "$@"
else
command diff --unified "$@"
fi
else
command diff --unified "$@"

@ -9,6 +9,8 @@ function make {
if zstyle -t ':omz:module:utility:make' color; then
if (( $+commands[colormake] )); then
colormake "$@"
else
command make "$@"
fi
else
command make "$@"

@ -18,6 +18,8 @@ function wdiff {
| sed 's/^\(@@\( [+-][[:digit:]]*,[[:digit:]]*\)\{2\} @@\)$/;5;6m\10m/g'
elif (( $+commands[git] )); then
git --no-pager diff --color=auto --no-ext-diff --no-index --color-words "$@"
else
command wdiff "$@"
fi
else
command wdiff "$@"

Loading…
Cancel
Save