From 2a31393ecf448fb88d721ac09ef5b73bc8113ef7 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sat, 30 Oct 2021 10:39:38 +0200 Subject: Revert "Removed templess (I only used it with mmh)" I actually used it to be able to pipe the content displayed by less to an external command, which is used for example to find urls in my emails with a less shortcut. This reverts commit b12b427f068a7b3302f227c3af8e90c18052ed64. --- templess | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 templess (limited to 'templess') diff --git a/templess b/templess new file mode 100755 index 0000000..ec3b999 --- /dev/null +++ b/templess @@ -0,0 +1,8 @@ +#!/bin/sh + +# Write standard in to a temporary file and sends it to a pager. + +pager=${PAGER:-less} +tempfile=$(mktemp) + +cat > "$tempfile" && $pager "$tempfile" -- cgit v1.3