by RMPR · 6y ago · 0 comments
ls | entr make
And whenever you save a change, the build is triggered and the preview is updated. watchexec make
By default, watchexec will filter out changes in files based on `.gitignore`. ls *.md | make
Will only trigger the build if a md file is modified, which is what I think the author is interested in. fswatch -0 ***.md | xargs -0 make
I invoke a variant of this from my Makefile with a phony watch target. I think the main change is that I also echo a bell character, to provide some feedback.Fun tip: Preview will automatically reload PDFs on disk, though with some limitations that I workaround by waiting for the bell.