From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=DATE_IN_PAST_12_24,DMARC_NONE, INVALID_DATE,MAILING_LIST_MULTI autolearn=no autolearn_force=no version=4.0.0 Received: from petra.squad51.net ([216.243.168.35] helo=petra.bitstream.net) by cvs.gentoo.org with smtp (Exim 3.30 #1) id 15fpsj-0002V7-00 for gentoo-dev@cvs.gentoo.org; Sat, 08 Sep 2001 15:43:17 -0600 Received: (qmail 25553 invoked by uid 1000); 8 Sep 2001 21:42:54 -0000 From: Ben Beuchler To: Gentoo Dev List Message-ID: <20010908164251.A25155@emt-p.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.22.1i Subject: [gentoo-dev] Using less with compressed docs -- tip! Sender: gentoo-dev-admin@cvs.gentoo.org Errors-To: gentoo-dev-admin@cvs.gentoo.org X-BeenThere: gentoo-dev@cvs.gentoo.org X-Mailman-Version: 2.0 Precedence: bulk Reply-To: gentoo-dev@cvs.gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux development list List-Unsubscribe: , List-Archive: Date: Sat Sep 8 15:44:02 2001 X-Original-Date: Sat, 8 Sep 2001 16:42:54 -0500 X-Archives-Salt: e3257af4-d2d2-4507-834c-2df3c58e4998 X-Archives-Hash: 25eca451920eafdeed53f8fee98cf9ec 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