Skip to content

Instantly share code, notes, and snippets.

@caramelchocolate
Created March 31, 2020 06:40
Show Gist options
  • Save caramelchocolate/401045b474695e293e63708909489c26 to your computer and use it in GitHub Desktop.
Save caramelchocolate/401045b474695e293e63708909489c26 to your computer and use it in GitHub Desktop.
example
#!/bin/sh
#watchmedo shell-command -w --recursive --patterns "*.php" --ignore-directories --ignore-pattern '*/.*' --command 'echo "${watch_event_type} | ${watch_object} | ${watch_src_path}"' ./
watchmedo shell-command -w --recursive --patterns "*.php" --ignore-directories --command 'sh test.sh' ./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment