Hacker News new | ask | show | jobs
by kctess5 3502 days ago
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

1 comments

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