diff options
Diffstat (limited to 'programs/zstdless')
| -rwxr-xr-x | programs/zstdless | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/programs/zstdless b/programs/zstdless index 893799e7d95a..17726a4f6e1e 100755 --- a/programs/zstdless +++ b/programs/zstdless @@ -1,2 +1,8 @@ #!/bin/sh -zstdcat "$@" | less + +zstd=${ZSTD:-zstd} + +# TODO: Address quirks and bugs tied to old versions of less, provide a mechanism to pass flags directly to zstd + +export LESSOPEN="|-${zstd} -cdfq %s" +exec less "$@" |
