Re: a better lesskey helper

From: John Baldwin <jhb_at_freebsd.org>
Date: Mon, 12 Nov 2007 17:51:36 -0500
On Friday 09 November 2007 03:59:21 pm Dag-Erling Smørgrav wrote:
> Chuck Robey <chuckr_at_chuckr.org> writes:
> > Dag-Erling Smørgrav wrote:
> >> Nikolay Pavlov <qpadla_at_gmail.com> writes:
> >>> There is already such a file there. You just need to proper set an
> >>> environment: setenv LESSOPEN '|lesspipe.sh %s'
> >> zless will do that for you.
> > Now I'm getting a bit confused.  I know you from long before, and I
> > know you wouldn't make mistakes easily.  MY zless here doesn't decode
> > executables and libs, but there's no man page, and zless --help gives
> > only the standard less help info, so I don;'t know what zless does
> > that less didn't do before I changed out the lesspipe.sh on my local
> > system.
> 
> "that" refers to Nikolay's setenv trick.  If you actually define
> LESSOPEN in your environment, less will always use it, which may not be
> what you want; instead, you can use less when you want to see the actual
> file and zless when you want it "decoded".

less -L

-- 
John Baldwin
Received on Tue Nov 13 2007 - 17:14:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:22 UTC