diff options
| author | Xin LI <delphij@FreeBSD.org> | 2026-04-08 04:01:57 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2026-04-08 04:01:57 +0000 |
| commit | 7e509d50854e3f2ba38be3a5e640088c010333af (patch) | |
| tree | 27cdfc7312dd868fce2fcd8687ac61e3fe5bb434 /programs/zstdless | |
| parent | b3392d84da5bf2162baf937c77e0557f3fd8a52b (diff) | |
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 "$@" |
