1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-29 12:03:03 +00:00
freebsd/usr.bin/less/zless.sh
Dag-Erling Smørgrav 2430592ce1 Add a zless script which invokes less using the lesspipe script. This is
similar to the zmore script that comes with gzip (and in fact, in most
Linux distros, zless is a symlink to that very same zmore script) but has
the advantage that you get the correct file name on the less status line,
and can use :n and :p to navigate back and forth between multiple files.

MFC after:	1 week
2005-05-17 11:14:11 +00:00

8 lines
94 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
export LESSOPEN="|/usr/bin/lesspipe.sh %s"
exec /usr/bin/less "$@"