summaryrefslogtreecommitdiff
path: root/.local/bin/pdf-preview
blob: 1587f36b4033d2475bb9761e76e0c0446f134d6c (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

# Typically called from vim
# Displays a pdf preview of an in-progress groff document
# Takes the filename as the only argument
# The pdf file is expected to have the same name as the groff document

zathura "${1%.*}.pdf" &