The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

    • RT @MarcBerns1: @zeeger Je zou wel gek zijn als je op erfpacht woont en in verduurzaming investeert: wordt meteen je erfpacht verhoogt, kan… 1 hour ago
    • RT @isotopp: TIL my potato server at home can create a million directories on XFS in 16s, single threaded. Using multiprocessing(10), it t… 1 hour ago
    • RT @hansdamen: Dat ging snel, het Twitteraccount @MinBijleveld is binnen de kortste keren omgezet in het generieke @DefensieMin. Gemakkelij… 1 hour ago
    • RT @locuta: OPROEP AAN ALLEN: Kijk vanavond om 20:25 naar 'Alleen Tegen De Staat' op NPO2, documentaire over de Toeslagenaffaire. 1 hour ago
    • RT @LarsWienand: Ein Kunde in einer Tankstelle gerät wegen der fehlenden Maske in Streit, kommt umgezogen und mit Maske wieder und erschieß… 1 hour ago
  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 2,465 other followers

OpenSUSE 12.2: Install package lesspipe and using it from bash

Posted by jpluimers on 2014/03/07

lesspipe is a great tool: is an input filter for the pager less as described in less‘s man page. The script allows you to view files with binary content, compressed files, archives and files contained in archives.

… however getting it to run on OpenSUSE was a bit of a journey as it is not part of the standard OpenSUSE 12.x repository. You can only get ‘unstable’ lesspipe packages, of which the Show home:adra / lesspipe – openSUSE Build Service seems to be maintained most frequently.

This is how to install it from there:

zypper addrepo
zypper refresh
zypper install lesspipe

I am using the bash shell, so after doing that, I had to add this line to my my ~/.bashrc

LESSOPEN="| %s"; export LESSOPEN

You can-reapply your ~/.bashrc, but note that it can give issues when appending existing environment variables like PATH. From

bash – How do I reload .bashrc without logging out and back in?:

Use the source command (or the dot shortcut .) which – depending if your .bashrc is in the current directory, can be any of these:

  • source .bashrc
  • . .bashrc
  • source ~/.bashrc
  • . ~/.bashrc



2 Responses to “OpenSUSE 12.2: Install package lesspipe and using it from bash”

  1. Joseph said

    You use OpenSUSE? I *knew* you were awesome! ;-)

    This message sent from OpenSUSE 13.1 KDE

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: