From 4bbf85ab4acd44176679762baa69619e30abc3d2 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Tue, 18 Feb 2020 00:13:11 +0800 Subject: [PATCH] bashrc: do not touch PAGER if !vimpager --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 374d09d..0b9c9dd 100644 --- a/.bashrc +++ b/.bashrc @@ -72,7 +72,7 @@ batlvl() { # application envs # policy: should here even if global like /etc/environments export GPG_TTY=$(tty) -export PAGER=vimpager +[ -f /usr/bin/vimpager ] && export PAGER=vimpager export LESS='-S -R' export LESSHISTFILE=- export EDITOR=vim -- 2.45.2