8 ms·
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 o
by jpitz 2mo 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.
- ventana 2mo agoThen export PAGER= in your shell profile should help!
- Ferret7446 2mo agoUnfortunately not all programs respect an empty PAGER vs an unset PAGER. It's more reliable to use PAGER=cat
- simon-b 2mo agoThis is indeed an annoying, but solvable, less default. You can eg use `export LESS="-XF"` to change behaviour.
- asabla 2mo agoIt 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
- jpitz 2mo agoThat's useful, although I don't know if I will enable it for generally or specifically for git.
- Vingdoloras 2mo agoI 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.
- eikenberry 2mo ago`git config --global core.pager cat` will fix this.