Closed ghost closed 10 months ago
Set the environment variable export MOAR=-no-clear-on-exit
globally, then git config core.pager moar
.
moar
reads config from that environment variable.
Or even better, do both of these and don't touch git
's config:
export MOAR=-no-clear-on-exit
export PAGER=moar
That will make others use moar
as well for their paging, not just git
.
And it opens up for using riff
as well :).
OK yes both ideas work, thank you!
If you ever look at git diffs in the terminal, you really should try riff
to make your diffs more readable:
https://github.com/walles/riff
If I do this, everything works fine:
but if I do this, I get an error: