batpipe: Format compressed files with 'bat'

This commit is contained in:
Ethan P 2021-04-04 14:14:16 -07:00
parent 82b444f93b
commit 2aff613888
No known key found for this signature in database
GPG Key ID: 6963FD04F6CF35EA

View File

@ -201,7 +201,7 @@ viewer_gunzip_supports() {
} }
viewer_gunzip_process() { viewer_gunzip_process() {
gunzip -k -c "$1" gunzip -k -c "$1" | bat --file-name="$1"
return $? return $?
} }
@ -219,7 +219,7 @@ viewer_xz_supports() {
} }
viewer_xz_process() { viewer_xz_process() {
xz --decompress -k -c "$1" xz --decompress -k -c "$1" | bat --file-name="$1"
return $? return $?
} }