Re: a better lesskey helper

From: Nikolay Pavlov <qpadla_at_gmail.com>
Date: Sat, 10 Nov 2007 18:39:45 +0200
On Saturday 10 November 2007 01:15:34 Chuck Robey wrote:
> 1: modify our lesspipe.sh, so that, in addition to the detection of
> various tar archives (along with compression), it also detects various
> elf images, and uses objdump to display the info.  Less will keep the
> current behavior on any other binaries it hits, only decoding the elf
> images.
>
> 2) add 1 line to our /etc/csh.cshrc and /etc/profile (to cover those sh
> and csh compatible shells) so that the lesspipe.sh functionality no
> longer needs folks to remember zless.  I don't think it's needed, but if
>   users ask for it, it would be trivial to code up a variable, like
> LESS_WITHOUT_LESSPIPE, that if defined could even block out hese
> changes.  I can't see why folks would not want it, but I'm not fanatic
> over it.
>
> 3) remove zless.

Why do you need all this. You can write whatever you want less to do in 
lesspipe.sh.
The Debian version that i've send to you also decode *.arj, *.deb, *.doc, 
*.gif|*.jpeg|*.jpg|*.pcd|*.png|*.tga|*.tiff|*.tif, *.iso, *.lha|*.lzh, 
*.pdf, *.rar|*.r[0-9][0-9], *.rpm *.jar|*.war|*.ear|*.xpi|*.zip, *.7z, 
 *.zoo

But even there it's not enabled by default. 

-- 
======================================================================  
- Best regards, Nikolay Pavlov. <<<-----------------------------------    
======================================================================  


Received on Sat Nov 10 2007 - 15:40:06 UTC

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