Browse Source

Added open-pdf script

Samuel W. Flint 8 năm trước cách đây
mục cha
commit
93edfaadcb
1 tập tin đã thay đổi với 13 bổ sung0 xóa
  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