bat

Posted on:

bat supports pager functionality.

You can use it by setting the environment variable PAGER or BAT_PAGER.

export BAT_PAGER="ov -F -H3"

Ensure that bat does not wrap lines (--wrap=never). If bat wraps lines, it cannot be unwrapped later. It is recommended to use ov for better operation.

bat --wrap=never README.md

bat bat