bats-job (266B)
1 #!/usr/bin/env sh 2 3 file="$1" 4 base="$(basename "$file")" 5 dir="$(dirname "$file")" 6 colorfile="$dir/.${base}.color" 7 8 printf "$colorfile\n" 9 exec bat --style=full --paging=never --color=always "$file" > "$colorfile" 10 #<"$file" sed '0,/^$/d;0,/^$/d' | delta > "$colorfile"