1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-06-14 10:51:41 +00:00

[Fix #195] Fallback to the default command

This commit is contained in:
Sorin Ionescu
2012-06-13 14:08:57 -04:00
parent 7dc55a8304
commit e4be6d633f
3 changed files with 6 additions and 0 deletions

View File

@ -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 "$@"