Change zstdless behavior to align with zless (#2909)
* Change zstdless behavior to align with zless
This commit is contained in:
+7
-1
@@ -1,2 +1,8 @@
|
||||
#!/bin/sh
|
||||
zstdcat "$@" | less
|
||||
|
||||
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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user