citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit cbe02c163968c1397b2874ddc882c5ff408d1712
parent a804f43dcb362f0c94169ddc1e59b4a2df467306
Author: William Casarin <jb55@jb55.com>
Date:   Wed,  5 May 2021 13:44:21 -0700

bats -> diffs

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Dbin/bats | 5-----
Dbin/bats-job | 10----------
Abin/diffs | 5+++++
Abin/diffs-job | 10++++++++++
4 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/bin/bats b/bin/bats @@ -1,5 +0,0 @@ -#!/usr/bin/env bash -REMOVES=$(parallel bats-job ::: "$@" | sort) - -<<<"$REMOVES" xargs "$PAGER" -<<<"$REMOVES" xargs rm -f diff --git a/bin/bats-job b/bin/bats-job @@ -1,10 +0,0 @@ -#!/usr/bin/env sh - -file="$1" -base="$(basename "$file")" -dir="$(dirname "$file")" -colorfile="$dir/.${base}.color" - -printf "$colorfile\n" -exec bat --style=full --paging=never --color=always "$file" > "$colorfile" -#<"$file" sed '0,/^$/d;0,/^$/d' | delta > "$colorfile" diff --git a/bin/diffs b/bin/diffs @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +REMOVES=$(parallel diffs-job ::: "$@" | sort) + +<<<"$REMOVES" xargs "$PAGER" +<<<"$REMOVES" xargs rm -f diff --git a/bin/diffs-job b/bin/diffs-job @@ -0,0 +1,10 @@ +#!/usr/bin/env sh + +file="$1" +base="$(basename "$file")" +dir="$(dirname "$file")" +colorfile="$dir/.${base}.color" + +printf "$colorfile\n" +exec delta < "$file" > "$colorfile" +#<"$file" sed '0,/^$/d;0,/^$/d' | delta > "$colorfile"