]> git.sur5r.net Git - i3/i3/blobdiff - i3-sensible-pager
Use command -v (built-in) instead of which(1) (Thanks val)
[i3/i3] / i3-sensible-pager
index df463251dffea61737ba9511e607f9cebb972d3b..5ad786062405a9c4a571ca6a1f54cf60ee366ade 100755 (executable)
@@ -12,7 +12,7 @@
 # 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 which $pager > /dev/null 2>&1; then
+    if command -v $pager > /dev/null 2>&1; then
         exec $pager "$@"
     fi
 done