I understand that you can do git --no-pager <command> to prevent the output from starting through the pager. I also understand that you can use, for example, git config --global core.pager cat .
However, there are some commands in which I want to use the pager automatically, for example. diff and others where I do not do this, for example. stash . Typing --no-pager every time is not as efficient as we would like.
Is it possible to configure this configuration for individual teams? Alternatively, can zsh automatically insert --no-pager when calling stash without using an alias?
source share