]> git.sur5r.net Git - i3/i3/blobdiff - i3-sensible-pager
Also check for empty $PAGER/$VISUAL/$EDITOR in i3-sensible-{editor,pager}
[i3/i3] / i3-sensible-pager
index 5af8d6b4e56be752aeac38a6ecbf005b37fb3f58..32f30aff895e670d39a3755e07870bf287e5358f 100755 (executable)
@@ -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 "$@"