Permalink
Browse files

override tork-herald with inotifywait(1) wrapper

  • Loading branch information...
sunaku committed Dec 7, 2012
1 parent f2348a8 commit 32bebe87cad7f06bbb49eaa88e09d674fd19305e
Showing with 5 additions and 1 deletion.
  1. +1 −1 .pathrc
  2. +4 −0 bin/tork-herald
View
@@ -18,8 +18,8 @@ find_paths() {
cache=$HOME/.pathrc.cache
test ! -s $cache -o $ROOT -nt $cache -o $0 -nt $cache && cat > $cache <<EOF
export PATHRC_PATH=\
-.bundle/bin:\
$HOME/bin:\
+.bundle/bin:\
$(
echo '.pathrc: calculating $PATH ...' >&2
find_paths bin
View
@@ -0,0 +1,4 @@
+#!/bin/sh
+inotifywait --recursive . @./.git --excludei '\.log$' \
+ --event close_write --format '%w%f' --monitor |
+sed --unbuffered 's,^\./,,; s/^/["/; s/$/"]/'

0 comments on commit 32bebe8

Please sign in to comment.