1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2026-04-18 14:24:06 +00:00

utility: conform 'diff' to GNU behaviour for scripting

This commit is contained in:
Denis Sheremet
2026-01-23 12:55:50 +03:00
committed by Indrajit Raychaudhuri
parent 43bf17169c
commit 371aaa254a

View File

@@ -8,8 +8,10 @@
# function diff {
if zstyle -t ':prezto:module:utility:diff' color \
&& [[ -t 1 ]] \
&& (( $+commands[colordiff] )); then
command diff "$@" | colordiff
return "${pipestatus[1]}"
else
command diff "$@"
fi