X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=i3-sensible-pager;h=32f30aff895e670d39a3755e07870bf287e5358f;hb=4412ccbe5a4fad8a4cd594e6f10f937515a4d37c;hp=5af8d6b4e56be752aeac38a6ecbf005b37fb3f58;hpb=3537f2d4ca6ef2447a92f222d3458d4e27899661;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 "$@"