I’m planning to change my job after almost 10 years in the same company. Today I started working on my CV and, naturally, spent a few hours setting up my workflow. I updated typst, installed mupdf as a light pdf-viewer and realtized my lack of basic linux knowledge when it comes to scripting. But I managed to build something that works just the way I want. First i start my editor and load the typst file. Then, I use entr to watch that file and compile it into a pdf when it changes. Finally I send a HUP signal to mupdf and tell it to reload the file.
ls cv.typ | entr -s 'typst compile cv.typ && pkill -HUP mupdf'