3 ms·
You can use inotifywait -e move_self,close_write *.tex *.bib and drop the sleep. This also means you will not needlessly recompile the pdf if you re-open
by ConfucianNardin 9y ago
You can use
inotifywait -e move_self,close_write *.tex *.bib
and drop the sleep. This also means you will not needlessly recompile the pdf if you re-open the source file in your editor.
Side note: Only one of move_self and close_write is actually required, depending on your editor. Some editors (e.g. vim, emacs), will write the modified content to a separate file, then rename it to the real file name (in order to make it atomic) => move_self. Others will overwrite the file in-place (e.g. gedit, nano) => close_write.