diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2015-08-03 14:32:57 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2015-08-03 14:32:57 +0200 |
| commit | 6978f6ba80c704f7620297373541606500797b42 (patch) | |
| tree | 44f833d8dd7a18e6e3ba5b130c79f7b1aafddea8 /zshrc | |
| parent | 13375a3cba33c4e45514fd4374100dd70d218ffe (diff) | |
| download | dotfiles-6978f6ba80c704f7620297373541606500797b42.tar.gz dotfiles-6978f6ba80c704f7620297373541606500797b42.zip | |
make pdf alias work with multiple pdfviewers
Diffstat (limited to 'zshrc')
| -rw-r--r-- | zshrc | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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" |
