I recently started to use zsh
(oh-my-zsh, without customizations) on iTerm2. But, I'm having a trouble in git log
or git show
.
Previously, for example, the git log
results were just a part of the terminal, just like ls -l
result. After quitting git log
by pressing q
key, the result was remained in the terminal screen. I was able to pick some hash id easily.
However, the current problem is that git log
(or git show
) results replace the screen. So, after quitting git log
, the terminal completely removes all git
results and returns to the original screen. This behavior is like vim
.
This behavior is the same even with bash
or Mac's default terminal app. This is not a problem of --no-pager
.
Any helps would be appreciated.
PAGER
set to anything?PAGER=/bin/cat
orPAGER=/usr/bin/less
seem like sane options. Default in my environment is to operator like/usr/bin/less
, when the value is not set. – Twinflowerwhich $PAGER
gives/usr/bin/less
.. – Unalienableless
issue discussed here: #6978281 – Allenaallenby