From Mature Dormouse, 2 Weeks ago, written in Bash.
  1. #!/usr/bin/env bash
  2.  
  3. file="$1"
  4.  
  5. ls $file | entr pdflatex $file >/dev/null &
  6.  
  7. zathura "${file%.latex}.pdf" &
captcha