Ver código fonte

Added open-pdf script

Samuel W. Flint 9 anos atrás
pai
commit
93edfaadcb
1 arquivos alterados com 13 adições e 0 exclusões
  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