This commit is contained in:
SkyperTHC 2023-12-13 16:37:14 +00:00
parent f7c740d1d1
commit 74f782184c
No known key found for this signature in database
GPG Key ID: A9BD386DF9113CD6

16
guest/fs-root/sf/bin/d Executable file

@ -0,0 +1,16 @@
#! /usr/bin/env bash
{ [[ -n $SF_BINDIR ]] && source "${SF_BINDIR}/funcs.sh"; } || source "/sf/bin/funcs.sh"
[[ $# -ne 2 ]] && { echo -e >&2 "${CY}ERROR${CN}: d <file1> <file2>"; exit 255; }
# cut & paste this into your shell on your workstation or add to ~/.bashrc
d() {
[[ -n "${DELTA_OPTS}" ]] && {
diff -u "$@" | delta ${DELTA_OPTS}
return
}
diff -u "$@" | delta --color-only
}
d "$@"