From: Oleg Broytman Date: Mon, 5 Oct 2015 09:11:55 +0000 (+0300) Subject: .gitconfig: remove core.pager and pass -FRSX in env X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=6d8fcbe56b488f473406ef26c0c7a3cc2a4f0ce1;hp=a116737b33bcc774c97d38101b130425df6aa90d .gitconfig: remove core.pager and pass -FRSX in env When PAGER is exactly 'less' (without additional options) git uses internal knowledge about its arguments. --- 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 "$@" }