Lurker News
I'm thinking of tiny projects along the lines of single-function tools like domainr. But also game-changing ebooks, newsletters, courses.

Comments (868) 410 threads

Show all comments

Showing thread 113 of 410

kctess51 reply#
It's not totally unique, but I made a simple tool I call "watch" that runs terminal commands on file save. You specify a file glob and a command and it runs the command whenever a globed file changes. Also has a few handy flags. I use it ever day to automate my file save->compile->run workflow. It's amazing how much time you save by never having to up-arrow/enter a terminal after every save. Been meaning to update it to use file hooks instead of polling but it works.

https://github.com/kctess5/file_watcher

nkantar1 reply#
For a brief moment I thought you wrote the Unix utility watch. Cool project anyway!
kctess5#
Thanks! I had not seen that before but it looks nifty.