summaryrefslogtreecommitdiff
path: root/.local/bin/x-pdf
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/x-pdf')
-rwxr-xr-x.local/bin/x-pdf9
1 files changed, 2 insertions, 7 deletions
diff --git a/.local/bin/x-pdf b/.local/bin/x-pdf
index a9893c0..1b23a3d 100755
--- a/.local/bin/x-pdf
+++ b/.local/bin/x-pdf
@@ -1,9 +1,4 @@
#!/bin/sh
-if [ -x "`which okular 2>/dev/null`" ]; then
- okular "$@"
-elif [ -x "`which evince 2>/dev/null`" ]; then
- evince "$@"
-elif [ -x "`which xpdf 2>/dev/null`" ]; then
- xpdf "$@"
-fi
+`pick evince okular xpdf` "$@"
+exit $?