I wrote a file watcher
vegardstikbakke.com·72w
🐚Shell Automation
Preview
Report Post

I wrote reload, my own file watcher!

The last year and a half I’ve been making my way through CSPrimer. It consists of hundreds of computer science problems, so working through these means I’m writing hundreds of small programs. Like most programming, it’s a very iterative process where I tweak my program and rerun it, typically switching from my editor to run a command.

gcc main.c -o main && ./main

It would be nice if this just reran automatically whenever I needed it to, so I didn’t have to switch between my editor and the terminal!

Of course, there exist tools like this. They’re sometimes called file watchers or hot reloaders. I tried a few existing tools such as entr an…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help