Re: [dev] Auto-preview man pages

From: Greg Reagle <>
Date: Thu, 7 Jan 2016 21:20:17 -0500

On Thu, Jan 07, 2016 at 01:56:13PM -0500, Greg Reagle wrote:
> Here is what I figured out using entr: I run
> ls address.yaml | entr make address.pdf
> which means I don't have to type make, and I run
> ls address.pdf | entr -r mupdf /_
> which means I don't have to type mupdf.
> Actually, this works very well. It is very automated. Whenever I do a save
> from my text editor, a mupdf window pops up.
> However, it seems like an overly complicated way to achieve my goal.
> I am left with the feeling that "There has got to be a better way." Is
> there?

I simplified the two separate commands into one command:
  echo address.yaml | entr -r sh -c 'make address.pdf && mupdf address.pdf'

and like I mentioned it is very automatic and very convenient. Whenever I
save changes with my text editor (to address.yaml) a new up-to-date mupdf
view pops up.
Received on Fri Jan 08 2016 - 03:20:17 CET

This archive was generated by hypermail 2.3.0 : Fri Jan 08 2016 - 03:24:11 CET