xref: /freebsd/sys/contrib/zstd/programs/zstdless (revision 4a6d7fc1a00b69925b3edc39acef0391487a8e3e)
1#!/bin/sh
2
3zstd=${ZSTD:-zstd}
4
5# TODO: Address quirks and bugs tied to old versions of less, provide a mechanism to pass flags directly to zstd
6
7export LESSOPEN="|-${zstd} -cdfq %s"
8exec less "$@"
9