zshenv: switch preference order of lesspipe.sh vs lesspipe
authorMichael Prokop <mika@grml.org>
Mon, 22 Sep 2014 08:12:50 +0000 (10:12 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 22 Sep 2014 09:26:27 +0000 (11:26 +0200)
commit7d3c439ba4e7afa0537baf3f41bf7a38b326e0b1
tree2eba1a502ade5d26b42cbc747ee70d8bc63937ca
parentef93c64c8168fae57cbf4d2d5212c19849c5fd94
zshenv: switch preference order of lesspipe.sh vs lesspipe

The lesspipe script as shipped by the less package itself seems
to be better maintained nowadays than the lesspipe.sh script
as shipped with the grml-script-core package.

While lesspipe.sh supports the "less $archive:$file" workflow to
display a file inside an archive, which isn't supported by
lesspipe yet, it sadly fails on more common tasks like with our
dchange function on recent Debian versions. E.g. 'dchange vim'
just displays:

| ==> append : to filename to view the UTF-8 encoded data

on Debian/jessie instead of displaying content of
/usr/share/doc/vim/changelog.Debian.gz.

While at it make the check for lesspipe path agnostic,
thanks Frank Terbeck <ft@grml.org> for assistance.
etc/zsh/zshenv