zstdless 197 B

12345678
  1. #!/bin/sh
  2. zstd=${ZSTD:-zstd}
  3. # TODO: Address quirks and bugs tied to old versions of less, provide a mechanism to pass flags directly to zstd
  4. export LESSOPEN="|-${zstd} -cdfq %s"
  5. exec less "$@"