From b48e809ec8919195468091c7dba43cc1d22b0c8e Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Fri, 12 Mar 2021 06:40:34 -0500 Subject: [PATCH] Avoid diff colorization when piping --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \ -- 2.20.1