diff options
-rwxr-xr-x | P | 5 | ||||
-rwxr-xr-x | p | 7 |
2 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,5 @@ +#!/bin/sh + +# P -- open file processed with p in PAGER + +"$PAGER" /var/tmp/pg @@ -0,0 +1,7 @@ +#!/bin/sh + +# p -- maybe view command output in pager + +[ -t 0 ] && exec /bin/sh -c '"$@" | "$0"' "$0" "$@" + +cat | tee /var/tmp/pg |