dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit c7805e49b87b8cb6b621f6f7f0e32394dd1b448e (patch)
parent 7772ca883cb77bc0ee58a29f79f801f1ad56d146
Author: Alex Karle <alex@alexkarle.com>
Date:   Sun,  1 Jan 2023 14:24:53 -0500

sh: Set PAGER=cat for dumb terminals

When running shells in embedded terminals like acme
or emacs, just don't try to page!

Diffstat:
M.shrc | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.shrc b/.shrc @@ -5,6 +5,11 @@ HISTSIZE=100000 export EDITOR=${EDITOR:-vi} export VISUAL=${VISUAL:-vi} -export PAGER=${PAGER:-less} + +if [ "$TERM" = "dumb" ]; then + export PAGER=cat +else + export PAGER=${PAGER:-less} +fi alias ll='ls -lahF'