2 # This script tries to exec a pager by trying some known pagers if $PAGER is
5 # Distributions/packagers can enhance this script with a
6 # distribution-specific mechanism to find the preferred pager.
7 which $PAGER >/dev/null && exec $PAGER "$@"
9 # Hopefully one of these is installed:
10 which most >/dev/null && exec most "$@"
11 which less >/dev/null && exec less "$@"
12 # we don't use 'more' because it will exit if the file is 'too short'
14 # If no pager is installed, try an editor
15 exec i3-sensible-editor "$@"