From 6d8fcbe56b488f473406ef26c0c7a3cc2a4f0ce1 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 5 Oct 2015 12:11:55 +0300 Subject: [PATCH] .gitconfig: remove core.pager and pass -FRSX in env When PAGER is exactly 'less' (without additional options) git uses internal knowledge about its arguments. --- .gitconfig | 3 --- .profile | 2 +- .shellrc | 2 ++ 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitconfig b/.gitconfig index d5535a1..4a411ea 100644 --- a/.gitconfig +++ b/.gitconfig @@ -88,9 +88,6 @@ untracked = red updated = magenta -[core] - pager = less -FRSXgimq - [log] abbrevCommit = true diff --git a/.profile b/.profile index 370bb75..a398165 100644 --- a/.profile +++ b/.profile @@ -76,7 +76,7 @@ if [ -t 0 ] ; then esac PAGER=less - LESS="-gimq" + LESS="gimq" case "$LC_CTYPE" in *UTF-8) LESSCHARSET=utf-8 ;; diff --git a/.shellrc b/.shellrc index 50dfa87..e6ae420 100644 --- a/.shellrc +++ b/.shellrc @@ -137,6 +137,8 @@ include() } +function git { + LESS=FRSX"$LESS" command git "$@" } -- 2.39.2