Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: weikinhuang/dotfiles
base: e5aeef77cd
...
head fork: weikinhuang/dotfiles
compare: 8ea50d7c52
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
View
13 .dotenv/cygwin/bin/fswatch
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+DIRECTORY="$(cygpath -w "${1}")"
+TARGETDIR="$(cygpath -u "${DIRECTORY}")"
+shift
+
+inotifywait -mrq --format '%e %w %f' \
+"$DIRECTORY" \
+| \
+while read event path file; do
+ cd "$TARGETDIR"
+ "$@"
+done
View
BIN  .dotenv/cygwin/bin/inotifywait.exe
Binary file not shown
View
16 .dotenv/linux/bin/fswatch
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+DIRECTORY="$(readlink -f "${1}")"
+shift
+
+inotifywait -mrs --timefmt '%s' --format '%T %e %w %f' \
+--event modify \
+--event move \
+--event create \
+--event delete \
+"$DIRECTORY" \
+| \
+while read time event dir file; do
+ cd "$DIRECTORY"
+ "$@"
+done

No commit comments for this range

Something went wrong with that request. Please try again.