chore: helper function for hot reloading

This commit is contained in:
2024-11-06 00:02:17 +02:00
parent 68635d4963
commit df668ca2a9

10
bwatch Executable file
View File

@@ -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