From: Ben Beuchler <insyte@emt-p.org>
To: Gentoo Dev List <gentoo-dev@cvs.gentoo.org>
Subject: [gentoo-dev] Using less with compressed docs -- tip!
Date: Sat Sep 8 15:44:02 2001 [thread overview]
Message-ID: <20010908164251.A25155@emt-p.org> (raw)
Gentoo, by default, compresses any documetation installed by a program. Or so
it appears, anyway. Viewing these files transparently is pretty easy. First,
create a script like this:
----------
#!/bin/sh
case "$1" in
*.gz) gunzip -c $1 2>/dev/null
;;
esac
----------
And put it somewhere easily accessible, like /usr/local/bin/lesspipe.sh.
Now do this:
export LESSOPEN="|/usr/local/bin/lesspipe.sh %s"
You'll probably want to stick that in /etc/profile or something. Now if you
try to use less top open a .gz file, it will work transparently.
-Ben
--
Ben Beuchler There is no spoon.
insyte@emt-p.org -- The Matrix
next reply other threads:[~2001-09-08 21:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-08 15:44 Ben Beuchler [this message]
2001-09-08 17:02 ` [gentoo-dev] Using less with compressed docs -- tip! Morgan Christiansson
2001-09-09 10:22 ` Karl Trygve Kalleberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010908164251.A25155@emt-p.org \
--to=insyte@emt-p.org \
--cc=gentoo-dev@cvs.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox