Created
February 26, 2021 16:46
-
-
Save jgrodziski/b69e3c72f7e7f5c5da5e51d3322c64c5 to your computer and use it in GitHub Desktop.
File Watcher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
fswatch -o $1 | xargs -n1 -I{} /usr/bin/env bash -c "echo Reloading $2; ~/bin/reload-browser.sh $2" reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See the other gist https://gist.github.com/jgrodziski/cf1c4087c02396f796646b247598769f