3 # This code is released in public domain by Han Boetes <han@mijncomputer.nl>
5 # This script tries to exec a pager by trying some known pagers if $PAGER is
8 # Distributions/packagers can enhance this script with a
9 # distribution-specific mechanism to find the preferred pager.
11 # Hopefully one of these is installed (no flamewars about preference please!):
12 # We don't use 'more' because it will exit if the file is too short.
13 # Worst case scenario we'll open the file in your editor.
14 for pager in "$PAGER" less most w3m pg i3-sensible-editor; do
15 if command -v "$pager" > /dev/null 2>&1; then