dotfiles/.local/bin/scripts/dif

5 lines
144 B
Bash
Executable File

#!/bin/sh
set -o pipefail
# interactive diff with pagination
diff --color=always --report-identical-files -U 2 "$@" | less --quit-if-one-screen