]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: Prefer xpdf over zathura.
authorSimon Ruderich <simon@ruderich.org>
Thu, 20 Dec 2012 16:35:42 +0000 (17:35 +0100)
committerSimon Ruderich <simon@ruderich.org>
Thu, 20 Dec 2012 16:35:42 +0000 (17:35 +0100)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index ad641b9b3fbab962e721846d8d240b125e59af7d..e2f7f9ccea2b86620aa9ffe62c8070ff5065f480 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -672,20 +672,22 @@ fi
     command tree -C "$@" | less
 }
 
-# Choose the "best" PDF viewer available: zathura, then xpdf. Also setup
-# completion for `pdf`.
-if (( $+commands[zathura] )); then
+# Choose the "best" PDF viewer available: xpdf, then zathura (in the past
+# zathura was preferred, but recent versions are completely broken: still no
+# working search and no page-wise scrolling anymore). Also setup completion
+# for `pdf`.
+if (( $+commands[xpdf] )); then
     pdf() {
-        command zathura "$@" 2>/dev/null &
+        command xpdf "$@" 2>/dev/null &
         disown %command
     }
-    # No completion for zathura yet.
     compdef _xpdf pdf
-elif (( $+commands[xpdf] )); then
+elif (( $+commands[zathura] )); then
     pdf() {
-        command xpdf "$@" 2>/dev/null &
+        command zathura "$@" 2>/dev/null &
         disown %command
     }
+    # No completion for zathura yet.
     compdef _xpdf pdf
 fi