]> git.phdru.name Git - dotfiles.git/commitdiff
.gitconfig: remove core.pager and pass -FRSX in env
authorOleg Broytman <phd@phdru.name>
Mon, 5 Oct 2015 09:11:55 +0000 (12:11 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 5 Oct 2015 09:11:55 +0000 (12:11 +0300)
When PAGER is exactly 'less' (without additional options) git uses
internal knowledge about its arguments.

.gitconfig
.profile
.shellrc

index d5535a102d2c0301c94cfb601bf39b770bcbd437..4a411ea5a43ba005fcdb3111908a3989f7d2e440 100644 (file)
@@ -88,9 +88,6 @@
        untracked = red
        updated = magenta
 
-[core]
-       pager = less -FRSXgimq
-
 [log]
        abbrevCommit = true
 
index 370bb752c217d8599034c45d6b63ff61b92f805f..a3981654b8335650b053d99b6a95d4c84c921f73 100644 (file)
--- 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
       ;;
index 50dfa870935e741d1bb3f71239a19975e05c82db..e6ae4205771cbd7de715a179cee54d4c6cb984a7 100644 (file)
--- a/.shellrc
+++ b/.shellrc
@@ -137,6 +137,8 @@ include()
 }
 
 
+function git {
+   LESS=FRSX"$LESS" command git "$@"
 }