From: Siraaj Khandkar Date: Fri, 12 Mar 2021 11:40:34 +0000 (-0500) Subject: Avoid diff colorization when piping X-Git-Url: https://git.xandkar.net/?p=khome.git;a=commitdiff_plain;h=b48e809ec8919195468091c7dba43cc1d22b0c8e Avoid diff colorization when piping --- diff --git a/Makefile b/Makefile index c2d4b8c..788b7d2 100644 --- a/Makefile +++ b/Makefile @@ -159,7 +159,7 @@ $(foreach d,$(DEPS),$(eval $(call GEN_DEP_RULE,$(d)))) diff: find home -type f -print0 \ | $(SED) -z 's/^home\///g' \ - | xargs -0 -I% sh -c 'echo %; $(DIFF) --color=always ~/% home/%' + | xargs -0 -I% sh -c 'echo %; $(DIFF) --color=auto ~/% home/%' pull: find home -type f -print0 \