aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-15 07:46:37 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-15 07:46:37 +0200
commit5f09e6cbdc167a84f2edf3a402ce1e09c234d34c (patch)
treef44a1d75fab5cd598de5ccba44e472b00d4dc6af
parentb6d61a9bb651c08639710e9aa6ad3177e279dc35 (diff)
downloadxutil-5f09e6cbdc167a84f2edf3a402ce1e09c234d34c.tar.gz
Add 'with-pager' utility
-rwxr-xr-xwith-pager2
1 files changed, 2 insertions, 0 deletions
diff --git a/with-pager b/with-pager
new file mode 100755
index 0000000..10f8717
--- /dev/null
+++ b/with-pager
@@ -0,0 +1,2 @@
+#!/bin/sh
+"$@" | ${PAGER:-less}