summaryrefslogtreecommitdiff
path: root/bwatch
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-06 00:02:17 +0200
committerKyren223 <Kyren223@proton.me>2024-11-06 00:02:17 +0200
commitdf668ca2a944fb6f6586a22c9380d4711eb569cb (patch)
tree20f6d9fda340a691b58936fa11744603b25d5896 /bwatch
parent68635d49634fe83a6b495eed034e4ce7952e4ac6 (diff)
chore: helper function for hot reloading
Diffstat (limited to 'bwatch')
-rwxr-xr-xbwatch10
1 files changed, 10 insertions, 0 deletions
diff --git a/bwatch b/bwatch
new file mode 100755
index 0000000..96a2c1a
--- /dev/null
+++ b/bwatch
@@ -0,0 +1,10 @@
+#!/usr/bin/zsh
+
+# 2.1 means "1st pane of the 2nd window"
+echo "Starting bwatch..."
+tmux send-keys -t 2.1 C-c
+sleep 0.5
+tmux send-keys -t 2.1 clear C-m
+sleep 0.2
+tmux send-keys -t 2.1 "go run ./cmd/client" C-m
+sleep 0.2