Hacker News new | ask | show | jobs
by jpitz 13 days ago
I'm bothered by it because whatever git command that I'm executing will put its output in a pager and when I quit the pager it's not there anymore. I want the output on the screen when I start typing the next command. Oh my God, this is such a frustrating pattern.
4 comments

This is indeed an annoying, but solvable, less default. You can eg use `export LESS="-XF"` to change behaviour.
It took me way too many years before I set this as a default in my profile files.

The funny thing is. I kept missing this detail every time I read through git. Feels like I was blind to the whole concept of it

That's useful, although I don't know if I will enable it for generally or specifically for git.
I had the same issue specifically with git, for the same reason. You can configure git to not use a pager by setting core.pager to an empty string.
Then export PAGER= in your shell profile should help!
Unfortunately not all programs respect an empty PAGER vs an unset PAGER. It's more reliable to use PAGER=cat
`git config --global core.pager cat` will fix this.