Comment by chazeon
There is a tool called entr, it kill and restart command when any file changes are detected, you could check it out.
There is a tool called entr, it kill and restart command when any file changes are detected, you could check it out.