diff options
author | Anarchiste <46760804+Recidiviste@users.noreply.github.com> | 2020-08-15 04:03:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-15 07:33:16 +0530 |
commit | 7d672411bbcf2358a330fa541c8fe3b6134cbe53 (patch) | |
tree | 2bf9252a52710324e3370567b8f183091a8dfcdd | |
parent | 9459b15672007c97110bbe4094b59620f3603c17 (diff) | |
download | nnn-7d672411bbcf2358a330fa541c8fe3b6134cbe53.tar.gz |
Adding support for `most` pager (#698)
* Added support of most
* Only test if bat exists
* Faster this way
* Don't test for bat'
-rwxr-xr-x | plugins/preview-tui | 1 |
1 files changed, 1 insertions, 0 deletions
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 |