git subrepo pull (merge) --force deps/libchdr
[pcsx_rearmed.git] / deps / libchdr / deps / zstd-1.5.5 / programs / zstdless
diff --git a/deps/libchdr/deps/zstd-1.5.5/programs/zstdless b/deps/libchdr/deps/zstd-1.5.5/programs/zstdless
new file mode 100755 (executable)
index 0000000..17726a4
--- /dev/null
@@ -0,0 +1,8 @@
+#!/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 "$@"