2021-01-07 11:01:15 +00:00
|
|
|
#!/bin/sh
|
2021-04-02 18:57:58 +00:00
|
|
|
set -o pipefail
|
2021-03-30 16:07:58 +00:00
|
|
|
# interactive diff with pagination
|
2021-04-11 20:47:51 +00:00
|
|
|
diff --color=always --report-identical-files -U 2 "$@" |
|
|
|
|
diffr --colors refine-added:none:background:0x33,0x66,0x33:bold --colors added:none:background:0x33,0x44,0x33 --colors refine-removed:none:background:0x66,0x33,0x33:bold --colors removed:none:background:0x44,0x33,0x33 |
|
|
|
|
less --RAW-CONTROL-CHARS --quit-on-intr --quit-if-one-screen
|