Skip to content

Instantly share code, notes, and snippets.

@raghavkarol
Created January 15, 2019 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raghavkarol/015cf5847502d7f9a3543f7530b8d749 to your computer and use it in GitHub Desktop.
Save raghavkarol/015cf5847502d7f9a3543f7530b8d749 to your computer and use it in GitHub Desktop.
reload_active_tab_chrome.as wrapped to use python watchdog
#!/bin/bash
patterns="$1"
url="$2"
echo "$(date) start watch reloading for $url on change to $patterns"
watchmedo shell-command --patterns "${patterns}" --command "echo \$(date) \$watch_src_path changed; reload_active_tab_chrome.as '$url'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment