Adding support for most pager (#698)

* Added support of most

* Only test if bat exists

* Faster this way

* Don't test for bat'
This commit is contained in:
Anarchiste 2020-08-15 04:03:16 +02:00 committed by GitHub
parent 9459b15672
commit 7d672411bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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