Open endriu00 opened 2 years ago
Which theme do you use ?
Hi! agnoster
theme.
Hi! I also have the same issue.
It doesn't reproduce in my environment. In my environment, git branch -a
is opened in less
as expected when the result doesn't fit in a terminal screen.
source "$OSH"/oh-my-bash.sh
in ~/.bashrc
and start a new session.$ git config --get core.pager
$ echo "$GIT_PAGER"
$ echo "$PAGER"
Try this:
git config --global pager.branch false
That worked for me.
Source: https://stackoverflow.com/questions/48341920/git-branch-command-behaves-like-less
@mialfe55 Thanks for the comment! Ah, so does this mean the OP @endriu00 has actually asked about the way to completely turn off the viewer like more
or less
? I thought it in the opposite way as the OP would have asked for the basic viewer features like scrolling and searching which is available in less
but missing in more
.
@endriu00 Could you check the answer from @mialfe55 if that actually answers your question?
I would find more useful for myself to get the basic view for
git branch -a
and othergit branch
commands. I was searching for some aliases to comment, but I found none. How can I do?