ProxSpace/msys2/usr/bin/zstdless
2023-09-22 00:10:50 +02:00

9 lines
197 B
Bash

#!/bin/sh
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 "$@"