From 8afa9a67f17eead170198f5d616029c29d0bbf81 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Mon, 8 Oct 2018 10:41:15 +1100 Subject: [PATCH] git/less: better alt-screen behaviour --- .bash/environment | 1 + .bash/interactive | 1 - .gitconfig | 5 ++++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.bash/environment b/.bash/environment index 8ccb665..669f1f5 100644 --- a/.bash/environment +++ b/.bash/environment @@ -13,6 +13,7 @@ fi # General environment settings export PAGER="less" +export LESS="RS" export PYTHONSTARTUP="${HOME}/.pythonrc.py" export EMAIL="James Bunton " diff --git a/.bash/interactive b/.bash/interactive index 2606b36..d8a8fec 100644 --- a/.bash/interactive +++ b/.bash/interactive @@ -162,7 +162,6 @@ fi alias f='find . -iname' alias webshare='python3 -mhttp.server' -alias less='less -R' if echo x | grep -q --color=auto x &> /dev/null; then alias grep='grep --color=auto' fi diff --git a/.gitconfig b/.gitconfig index 9652e9a..2b1c967 100644 --- a/.gitconfig +++ b/.gitconfig @@ -2,8 +2,11 @@ name = James Bunton email = jamesbunton@delx.net.au [core] - pager = less -+F -+X + pager = less excludesfile = ~/.gitignore_global +[pager] + branch = less -F + tag = less -F [color] ui = auto [log] -- 2.39.2