mirror of
https://github.com/jarun/nnn.git
synced 2024-12-01 02:49:44 +00:00
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:
parent
9459b15672
commit
7d672411bb
|
@ -64,6 +64,7 @@ TERMINAL="$TERMINAL" # same goes for the terminal
|
||||||
USE_SCOPE="${USE_SCOPE:-0}"
|
USE_SCOPE="${USE_SCOPE:-0}"
|
||||||
USE_PISTOL="${USE_PISTOL:-0}"
|
USE_PISTOL="${USE_PISTOL:-0}"
|
||||||
PAGER="${PAGER:-less -R}"
|
PAGER="${PAGER:-less -R}"
|
||||||
|
[ "$PAGER" = "most" ] && PAGER="less -R"
|
||||||
|
|
||||||
if [ -e "${TMUX%%,*}" ] && tmux -V | grep -q '[ -][3456789]\.'; then
|
if [ -e "${TMUX%%,*}" ] && tmux -V | grep -q '[ -][3456789]\.'; then
|
||||||
TERMINAL=tmux
|
TERMINAL=tmux
|
||||||
|
|
Loading…
Reference in a new issue