We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
fswatch
1 parent d4040fb commit 8812807Copy full SHA for 8812807
1 file changed
commands/setup
@@ -146,11 +146,18 @@ fi
146
147
# Watch ------------------------------------------------------------------------
148
149
-export WATCH_CMD=(fswatch --one-per-batch --recursive)
+export WATCH_CMD=(watch --one-per-batch --recursive)
150
151
if [[ "$OSTYPE" =~ ^(linux-gnu|msys|cygwin)$ ]]; then
152
# The default monitor notifies on read accesses...
153
WATCH_CMD+=(--monitor poll_monitor '--latency=5')
154
fi
155
156
WATCH_CMD+=(../*)
157
+
158
+watch() {
159
+ if ! command -v fswatch > /dev/null; then
160
+ >&2 echo "WARNING: Could not find fswatch ( http://emcrisostomo.github.io/fswatch/ )."
161
+ fi
162
+ fswatch "$@"
163
+}
0 commit comments