summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/dw10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/dw b/bin/dw
new file mode 100755
index 0000000..b000d58
--- /dev/null
+++ b/bin/dw
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# Execute given command when current dir content changes.
+#
+trap exit SIGINT
+
+while true; do
+ fswatch -1 . >/dev/null 2>&1
+ "$@"
+done