Display a file in an interactive pager

rich

  • Rich CLI is a toolbox for fancy output in the terminal.
    More information: <https://github.com/Textualize/rich-cli>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

rich {{path/to/file.py}} --pager

click the source code to copy