#!/bin/bash # # View document as rendered PDF if [[ $1 == *.pdf ]]; then zathura --fork "$1" else pandoc -tpdf -o- "$1" | zathura --fork - fi