commit 76d374caf7d428b40142b507006d439dcba94c88
parent 508693bbe10034212843e6ba004938a427829af3
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Fri, 31 Jan 2020 20:52:27 +0100
cheat: use env pager
Former-commit-id: 77c61c226d045e04948b5a64620cffe8acc4f243
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/cheat b/scripts/cheat
@@ -5,4 +5,4 @@ if ! command -v curl &>/dev/null; then
fi
! [ $# -ge 1 ] && echo "Argument required." && exit 1
-curl -Ls cheat.sh/"$1" | less
+curl -Ls cheat.sh/"$1" | ${PAGER:-less -R}