Thursday, 8 August 2013

git no pager for specific commands

git no pager for specific commands

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 (diff) and others where I do not (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?

No comments:

Post a Comment