#!/usr/bin/fish function texwait while inotifywait "$argv" texexec "$argv" --nonstopmode end end