Browse Source

Added open-pdf script

Samuel W. Flint 8 years ago
parent
commit
93edfaadcb
1 changed files with 13 additions and 0 deletions
  1. 13 0
      open-pdf

+ 13 - 0
open-pdf

@@ -0,0 +1,13 @@
+#!/bin/sh
+# -*- shell-script -*-
+
+if [ $# -lt 1 ] ; then
+    echo "open-pdf file"
+    exit
+fi
+
+if [[ -e `which evince` ]] ; then
+    evince $1
+else
+    xpdf $1
+fi