watchexec Command Examples

Run arbitrary commands when files change. More information: https://manned.org/watchexec.

watchexec {{ls -la}}

watchexec {{[-e|--exts]}} {{js,css,html}} make

watchexec {{[-w|--watch]}} {{lib}} {{[-w|--watch]}} {{src}} {{make}}

watchexec {{[-r|--restart]}} --stop-signal {{SIGKILL}} {{my_server}}