mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-06-25 22:41:23 +02:00
batpipe: Format compressed files with 'bat'
This commit is contained in:
parent
82b444f93b
commit
2aff613888
@ -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 $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user