summaryrefslogtreecommitdiff
path: root/.local/bin/x-pdf
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-05-30 11:36:32 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-05-30 11:36:32 -0400
commitdbab2a06f142894f446f1f66b637242862dcd7bf (patch)
treec8888e76f39647edad67abd73e74605b1d95b3aa /.local/bin/x-pdf
parentbd8512e48b8ca0f44171c06578da7a5f3cd6663f (diff)
parent344bd61ba0d7d06b3cec6499ef6b4058f9d64626 (diff)
Merge branch 'master' of gitorious.org:lukeshu-dotfiles/lukeshu-dotfiles
Conflicts: .emacs .emacs.d/custom.el
Diffstat (limited to '.local/bin/x-pdf')
-rwxr-xr-x.local/bin/x-pdf9
1 files changed, 9 insertions, 0 deletions
diff --git a/.local/bin/x-pdf b/.local/bin/x-pdf
new file mode 100755
index 0000000..a9893c0
--- /dev/null
+++ b/.local/bin/x-pdf
@@ -0,0 +1,9 @@
+#!/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