Add automatic color alias for diff (copied from grep)

This commit is contained in:
Chris Adams 2025-10-25 12:54:45 -05:00
commit 14106e0b0e
5 changed files with 45 additions and 1 deletions

11
diffconf.sh Normal file
View file

@ -0,0 +1,11 @@
#!/bin/sh
case "$1" in
-c | --interactive-color)
! diff -qsi "^COLOR.*none" /etc/DIFF_COLORS
;;
*)
echo >&2 "Invalid / no option passed, so far only -c | --interactive-color is supported."
exit 1
;;
esac