adds tmux scrips

This commit is contained in:
2024-03-23 09:19:59 -07:00
parent c22826d8e4
commit ce74a987c6
2 changed files with 26 additions and 0 deletions

13
tmux-sessions/syncopotamus.sh Executable file
View File

@@ -0,0 +1,13 @@
tmux new-session -s syncopotamus -d -c ~/repos/syncopotamus-go -n backend
tmux split-window -h -c ~/repos/syncopotamus-go
tmux send-keys -t syncopotamus:backend.0 'nvim' C-m
tmux send-keys -t syncopotamus:backend.1 'go run .' C-m
tmux new-window -c ~/repos/syncopotamus-svelte -n frontend
tmux split-window -h -c ~/repos/syncopotamus-svelte
tmux send-keys -t syncopotamus:frontend.0 'nvim' C-m
tmux send-keys -t syncopotamus:frontend.1 'npm run dev' C-m
tmux select-window -t syncopotamus:backend
tmux select-pane -t 0
tmux -2 attach-session -t syncopotamus