Add automatic color alias for diff (copied from grep)
This commit is contained in:
parent
30c705e495
commit
14106e0b0e
5 changed files with 45 additions and 1 deletions
11
diffconf.sh
Normal file
11
diffconf.sh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue