From 9e76252cee007b7abe502d49c3d3ee8eaec2cd93 Mon Sep 17 00:00:00 2001 From: Lena <126529524+acuteenvy@users.noreply.github.com> Date: Wed, 23 Aug 2023 08:55:18 +0200 Subject: [PATCH] watchexec: update page (#10621) --- pages/common/watchexec.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/common/watchexec.md b/pages/common/watchexec.md index 324b5dedf..755daea2e 100644 --- a/pages/common/watchexec.md +++ b/pages/common/watchexec.md @@ -5,16 +5,16 @@ - Call `ls -la` when any file in the current directory changes: -`watchexec -- {{ls -la}}` +`watchexec {{ls -la}}` -- Run `make` when any JavaScript, CSS and HTML files in the current directory change: +- Run `make` when any JavaScript, CSS and HTML file in the current directory changes: `watchexec --exts {{js,css,html}} make` -- Run `make` when any file in the `lib` or `src` subdirectories change: +- Run `make` when any file in the `lib` or `src` directory changes: `watchexec --watch {{lib}} --watch {{src}} {{make}}` -- Call/restart `my_server` when any file in the current directory change, sending `SIGKILL` to stop the child process: +- Call/restart `my_server` when any file in the current directory changes, sending `SIGKILL` to stop the child process: `watchexec --restart --stop-signal {{SIGKILL}} {{my_server}}`