summaryrefslogtreecommitdiff
path: root/bin/dw
blob: 35e0863e2f9873d9b2c9a3e3ef86dfacfdbb4fee (plain)
1
2
3
4
5
6
#!/bin/sh

# Execute given command when current dir content changes.

trap exit SIGINT
while true; do "$@"; fswatch -1 . >/dev/null 2>&1; done