aboutsummaryrefslogtreecommitdiff
path: root/config/qutebrowser/userscripts/nodemon
diff options
context:
space:
mode:
Diffstat (limited to 'config/qutebrowser/userscripts/nodemon')
-rwxr-xr-xconfig/qutebrowser/userscripts/nodemon11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/qutebrowser/userscripts/nodemon b/config/qutebrowser/userscripts/nodemon
new file mode 100755
index 0000000..99da415
--- /dev/null
+++ b/config/qutebrowser/userscripts/nodemon
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+WATCH_DIR="$1";
+EXTENSIONS="${2:-"js,html,css"}";
+
+nodemon --exec "echo 'reload' >> $QUTE_FIFO" -e $EXTENSIONS -w "$WATCH_DIR" &
+
+~/scripts/notify.sh "[$PID] Watching $WATCH_DIR for $EXTENSIONS...";
+
+disown;
+