ohmybash / oh-my-bash

A delightful community-driven framework for managing your bash configuration, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
https://ohmybash.github.io
MIT License
5.79k stars 648 forks source link

git branch -a shows branch in a `more` mode #252

Open endriu00 opened 2 years ago

endriu00 commented 2 years ago

I would find more useful for myself to get the basic view for git branch -a and other git branch commands. I was searching for some aliases to comment, but I found none. How can I do?

locobastos commented 2 years ago

Which theme do you use ?

endriu00 commented 2 years ago

Hi! agnoster theme.

alinasrullayev commented 2 years ago

Hi! I also have the same issue.

akinomyoga commented 2 years ago

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.

$ git config --get core.pager
$ echo "$GIT_PAGER"
$ echo "$PAGER"
mialfe55 commented 1 year ago

Try this:

git config --global pager.branch false

That worked for me.

Source: https://stackoverflow.com/questions/48341920/git-branch-command-behaves-like-less

akinomyoga commented 1 year ago

@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?