I realize that you can do git --no-pager <command>
to prevent the output from being run through a pager. I also realize you can use, for instance, git config --global core.pager cat
.
However there are some commands where I do want to use the pager automatically, e.g. diff
, and others where I do not, e.g. stash
. Typing out --no-pager
each time is not as efficient as I'd like.
Is there any way to set configuration like this for individual commands? As an alternative, is it possible to have zsh
automatically insert --no-pager
when calling stash
without using an alias?