aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rwxr-xr-xtempless8
2 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e547814..827f0bd 100644
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,7 @@ SCRIPTS = addressgrep \
26 popup-terminal \ 26 popup-terminal \
27 sfeed-browser \ 27 sfeed-browser \
28 spawn \ 28 spawn \
29 templess \
29 togglemute \ 30 togglemute \
30 translate \ 31 translate \
31 urlgrep \ 32 urlgrep \
diff --git a/templess b/templess
new file mode 100755
index 0000000..ec3b999
--- /dev/null
+++ b/templess
@@ -0,0 +1,8 @@
1#!/bin/sh
2
3# Write standard in to a temporary file and sends it to a pager.
4
5pager=${PAGER:-less}
6tempfile=$(mktemp)
7
8cat > "$tempfile" && $pager "$tempfile"

Generated with cgit - Back to sebastiano.tronto.net