aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2015-08-03 14:32:57 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2015-08-03 14:32:57 +0200
commit6978f6ba80c704f7620297373541606500797b42 (patch)
tree44f833d8dd7a18e6e3ba5b130c79f7b1aafddea8
parent13375a3cba33c4e45514fd4374100dd70d218ffe (diff)
downloaddotfiles-6978f6ba80c704f7620297373541606500797b42.tar.gz
dotfiles-6978f6ba80c704f7620297373541606500797b42.zip
make pdf alias work with multiple pdfviewers
-rw-r--r--zshrc13
1 files changed, 12 insertions, 1 deletions
diff --git a/zshrc b/zshrc
index a0d5061..fe8a225 100644
--- a/zshrc
+++ b/zshrc
@@ -94,7 +94,18 @@ alias screensoff="xset s off; xset -dpms && echo 'xcreensaver and dpms disabled'
alias screenson="xset s on; xset +dpms && echo 'xscreensaver and dpms enabled'"
# Aliases for filetypes
-alias -s pdf="apvlv"
+if type zathura &>/dev/null
+then
+ alias -s pdf="zathura"
+elif type apvlv &>/dev/null
+then
+ alias -s pdf="apvlv"
+elif type mupdf &>/dev/null
+then
+ alias pdf="mupdf"
+fi
+
+
alias -s tar="tar xfv"
alias -s zip="unzip"