singe/thirdparty/zstd/programs/zstdless
2023-11-14 22:16:48 -06:00

8 lines
197 B
Bash
Executable file

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