X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=i3-sensible-pager;h=32f30aff895e670d39a3755e07870bf287e5358f;hp=5af8d6b4e56be752aeac38a6ecbf005b37fb3f58;hb=ee43861fc412d37585f43ea085d4c498376d0fdf;hpb=0ffcc00b1515fd109dbb95a750d7ada68679b04b 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 "$@"