commit d230030e8afbaf2568684b7f65b404975227b37d (patch)
parent 6d392f1a8958a4d6c2393ce5d494c5a119a1039b
Author: Alex Karle <alex@alexkarle.com>
Date: Tue, 24 Aug 2021 23:51:17 -0400
bin: Add p, a script-as-alias for $PAGER
This is a script instead of an alias so I can easily call it in
ed(1) (or other tools, for that matter). Just `w !p` or `!p %`.
Works in mail(1), mutt(1), and more!
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/bin/p b/bin/p
@@ -0,0 +1,3 @@
+#!/bin/sh
+# p - pager, script over alias for availability in ed(1)
+exec ${PAGER:-less} "$@"