Categories
Computer science recommendations

Auto build your code on save with entr

So I’m working on a project at work where I want to rebuild my code whenever I save a source code file. Today I found the tool ‘entr’ and it’s a great thing to learn about. (I should totally send this to Julia Evans!)

All I needed to do is run

ls *.src | entr make

And that’s it. It’ll re-run make every time I save from the editor. Simple, helpful, open source.