#!/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" &