X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=i3-sensible-pager;h=32f30aff895e670d39a3755e07870bf287e5358f;hb=752b1019162b13ac9975634d5974ebd1f34c14a5;hp=5af8d6b4e56be752aeac38a6ecbf005b37fb3f58;hpb=db33da225842fe8c3be296b48aba6e9d1bbe0c0d;p=i3%2Fi3 diff --git a/i3-sensible-pager b/i3-sensible-pager index 5af8d6b4..32f30aff 100755 --- a/i3-sensible-pager +++ b/i3-sensible-pager @@ -4,7 +4,7 @@ # # Distributions/packagers can enhance this script with a # distribution-specific mechanism to find the preferred pager. -which $PAGER >/dev/null && exec $PAGER "$@" +[ -n "$PAGER" ] && which $PAGER >/dev/null && exec $PAGER "$@" # Hopefully one of these is installed: which most >/dev/null && exec most "$@"