diff --git a/watch.sh b/watch.sh new file mode 100755 index 0000000..e5f0536 --- /dev/null +++ b/watch.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +ls *.ts* | entr yarn lint | tee >( + while read ln; do + if echo "${ln}" | grep -q "error"; then + notify-send "${ln}" + fi + done +)