X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=i3-sensible-pager;h=386e29886ff82d29e8a56034eacfcfe87ce5eaac;hp=5ad786062405a9c4a571ca6a1f54cf60ee366ade;hb=HEAD;hpb=3b4ae812e3543681a331bb72e6ae50038c4ab7bc diff --git a/i3-sensible-pager b/i3-sensible-pager index 5ad78606..386e2988 100755 --- a/i3-sensible-pager +++ b/i3-sensible-pager @@ -11,8 +11,8 @@ # Hopefully one of these is installed (no flamewars about preference please!): # We don't use 'more' because it will exit if the file is too short. # Worst case scenario we'll open the file in your editor. -for pager in $PAGER less most w3m i3-sensible-editor; do - if command -v $pager > /dev/null 2>&1; then - exec $pager "$@" +for pager in "$PAGER" less most w3m pg i3-sensible-editor; do + if command -v "$pager" > /dev/null 2>&1; then + exec "$pager" "$@" fi done