From 7d672411bbcf2358a330fa541c8fe3b6134cbe53 Mon Sep 17 00:00:00 2001 From: Anarchiste <46760804+Recidiviste@users.noreply.github.com> Date: Sat, 15 Aug 2020 04:03:16 +0200 Subject: [PATCH] Adding support for `most` pager (#698) * Added support of most * Only test if bat exists * Faster this way * Don't test for bat' --- plugins/preview-tui | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/preview-tui b/plugins/preview-tui index a83be55..8dcdb3c 100755 --- a/plugins/preview-tui +++ b/plugins/preview-tui @@ -64,6 +64,7 @@ TERMINAL="$TERMINAL" # same goes for the terminal USE_SCOPE="${USE_SCOPE:-0}" USE_PISTOL="${USE_PISTOL:-0}" PAGER="${PAGER:-less -R}" +[ "$PAGER" = "most" ] && PAGER="less -R" if [ -e "${TMUX%%,*}" ] && tmux -V | grep -q '[ -][3456789]\.'; then TERMINAL=tmux