Skip to content

Instantly share code, notes, and snippets.

@gabihodoroaga
Last active November 15, 2019 10:43
Show Gist options
  • Save gabihodoroaga/c722563192f35be21c60af99e360304f to your computer and use it in GitHub Desktop.
Save gabihodoroaga/c722563192f35be21c60af99e360304f to your computer and use it in GitHub Desktop.
# install watchdog
pip install watchdog
# run this command
watchmedo shell-command --patterns="*.js;" --recursive --command='bash -c "if [ ${watch_event_type} == "modified" ]; then echo "updating..." && cp ${watch_src_path} /c/temp && echo "done"; fi"' ./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment