Browse Source

utility: Pipe diff output through colordiff Instead of aliasing

`colordiff` behaves better as `stdin` filter. This is useful in
retaining color escape sequences when used with `less`.
master
Indrajit Raychaudhuri 3 years ago committed by Indrajit Raychaudhuri
parent
commit
74f4871d10
  1. 2
      modules/utility/functions/diff

2
modules/utility/functions/diff

@ -9,7 +9,7 @@
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 diff "$@" | colordiff
else else
command diff "$@" command diff "$@"
fi fi

Loading…
Cancel
Save