diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-10-26 00:22:58 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-01-27 17:27:06 -0500 |
commit | 75d7480036aebc489db5c7a3689fa608653c5430 (patch) | |
tree | 591ade20e2c015eccd9a3f85c58be081e0778fb6 /.local/bin/x-pdf | |
parent | 3515a46d330af1d09bf1e0b963c13a86c2dbe8a8 (diff) |
consolidate the .local/bin/x-* program-picking code into a `pick` command
Diffstat (limited to '.local/bin/x-pdf')
-rwxr-xr-x | .local/bin/x-pdf | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/.local/bin/x-pdf b/.local/bin/x-pdf index a9893c0..1b23a3d 100755 --- a/.local/bin/x-pdf +++ b/.local/bin/x-pdf @@ -1,9 +1,4 @@ #!/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 +`pick evince okular xpdf` "$@" +exit $? |