Run arbitrary commands when files change.
ls -la
when any file in the current directory changes:
watchexec -- {ls -la}
make
when any JavaScript, CSS and HTML files in the current directory change:
watchexec --exts {js,css,html} make
make
when any file in the lib
or src
subdirectories change:
watchexec --watch {lib} --watch {src} {make}
my_server
when any file in the current directory change, sending SIGKILL
to stop the child process:
watchexec --restart --signal {SIGKILL} {my_server}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
=> CC-BY This content has been proxied by September (ba2dc).Proxy Information
text/gemini;lang=en-GB