I'm trying to display git help branch
without less into zsh using git --no-pager help branch
. But it's still opens in less with the (END)
. So I have to close it every time q
button and can not see the documentation while writing terminal commands.
What am I doing wrong?
CodePudding user response:
git help
calls man
and man
uses its own pager configuration, it knows nothing about and doesn't obey git --no-pager
. To configure or disable a pager for man
use environment variables MANPAGER
(specific) or PAGER
(generic). Example:
MANPAGER=cat git help branch