On Tue, Mar 21, 2023 at 03:24:53PM +0100, Alejandro Colomar wrote: > Hi, > > I wrote recently some aliases to not clutter my screen when I want to > check something quick: > > $ head -n4 ~/.gitconfig > [alias] > df = -c core.pager='less -+F -+X' diff > sw = -c core.pager='less -+F -+X' show > st = -c core.pager='less -+F -+X' status > > Now, `git df` and `git sw` work as expected: they open a less window, > and it's later closed with `q`, with no traces in my screen except for > the command itself. > > However, `git st` doesn't seem to work. It prints everything to screen, > and then exits. git-status doesn't invoke the pager by default: $ git -c core.pager='echo foo' log foo $ git -c core.pager='echo foo' status On branch [...etc] You can configure it to do so: git config --global pager.status true Or if you just want it to happen in your alias, try: [alias] st = -p -c core.pager='less -+F -+X' status -Peff