mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-06-25 14:31: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() {
|
||||
gunzip -k -c "$1"
|
||||
gunzip -k -c "$1" | bat --file-name="$1"
|
||||
return $?
|
||||
}
|
||||
|
||||
@ -219,7 +219,7 @@ viewer_xz_supports() {
|
||||
}
|
||||
|
||||
viewer_xz_process() {
|
||||
xz --decompress -k -c "$1"
|
||||
xz --decompress -k -c "$1" | bat --file-name="$1"
|
||||
return $?
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user