From d230030e8afbaf2568684b7f65b404975227b37d Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Tue, 24 Aug 2021 23:51:17 -0400 Subject: [PATCH] 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! --- bin/p | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 bin/p diff --git a/bin/p b/bin/p new file mode 100755 index 0000000..da0d87d --- /dev/null +++ b/bin/p @@ -0,0 +1,3 @@ +#!/bin/sh +# p - pager, script over alias for availability in ed(1) +exec ${PAGER:-less} "$@" -- libgit2 1.1.0