dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit bc4eec6ce9518776e926b8390d986db891c939ca
parent 1b8de2ac31245436fbeee9a28073395958e5de0d
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Wed, 17 Jun 2020 16:17:28 -0400

pager: Handle dumb terminals

Diffstat:
Metc/shrc.d/pager.sh | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/etc/shrc.d/pager.sh b/etc/shrc.d/pager.sh @@ -1,8 +1,16 @@ -if type less > /dev/null 2>&1 +if [ "$TERM" = "dumb" ] +then + if type nobs >/dev/null 2>&1 + then + PAGER=nobs + else + PAGER=cat + fi +elif type less >/dev/null 2>&1 then PAGER=less LESS="-FMRqX#10"; export LESS - if type lesspipe > /dev/null 2>&1 + if type lesspipe >/dev/null 2>&1 then eval `lesspipe` else