Typing 'git log --oneline' in oh-my-zsh pipes to 'less'

oh-my-zsh runs less command with -R (repaint). You can disable this behavior by adding the following line at the end of your ~/.zshrc

unset LESS;

This is set to -R in ~/.oh-my-zsh/lib/misc.zsh

Source: https://stackoverflow.com/a/49267711/1050554.


maybe a better solution :

git config --global --replace-all core.pager "less -F -X"

from How do I prevent git diff from using a pager?


You can define a pager, which git uses by default for its output via

  1. the $GIT_PAGER or $PAGER environment variable
  2. the git config entry core.pager

The pager can be temporary disabled with the git command line option --no-pager. How to make it permanent depends upon the both possibilities above:

  1. find, where in your shell's config files the $GIT_PAGER or $PAGER environment variable gets defined and remove that line.

  2. run git config --global core.pager ''

Tags:

Zsh

Oh My Zsh