I've got a fairly default setup for git on an OSX machine, but I'd like to add -j.5 to less, so that search matches happen in the middle of the screen.
I tried doing export LESS=-j.5
, but that caused content like ESC[1mdiff --git a/app/images/bluecog-icon.png b/app/images/bluecog-icon.pngESC[m
to appear, even though beforehand, echo $LESS
gave an empty result. I looked up git help diff
but it didn't have any mentions of "pager", or mentions of "less" that refer to the unix tool (as opposed to meaning the opposite of "greater").
Either modifying an environmental variable, or passing a parameter to git diff
is acceptable. I know that I can just input -j.5
when I'm within git diff itself.