summaryrefslogtreecommitdiff
path: root/x-pdf
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-03-28 20:52:50 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-03-28 20:52:50 -0400
commitbe87825a69b5d08f8525ff0a2e449330f087d741 (patch)
treedaa41c97644b6eba0e817fa1aff11835eec71903 /x-pdf
My X program aliases
Diffstat (limited to 'x-pdf')
-rwxr-xr-xx-pdf9
1 files changed, 9 insertions, 0 deletions
diff --git a/x-pdf b/x-pdf
new file mode 100755
index 0000000..020ff7e
--- /dev/null
+++ b/x-pdf
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ -x "`which okular 2>/dev/null`" ]; then
+ okular "$@"
+if [ -x "`which evince 2>/dev/null`" ]; then
+ evince "$@"
+elif [ -x "`which xpdf 2>/dev/null`" ]; then
+ xpdf "$@"
+fi