From ce74a987c6a052143af0f097ac99265265852650 Mon Sep 17 00:00:00 2001 From: Carlos Aldana Date: Sat, 23 Mar 2024 09:19:59 -0700 Subject: [PATCH] adds tmux scrips --- tmux-sessions/linkedag.sh | 13 +++++++++++++ tmux-sessions/syncopotamus.sh | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100755 tmux-sessions/linkedag.sh create mode 100755 tmux-sessions/syncopotamus.sh diff --git a/tmux-sessions/linkedag.sh b/tmux-sessions/linkedag.sh new file mode 100755 index 0000000..0a5cafe --- /dev/null +++ b/tmux-sessions/linkedag.sh @@ -0,0 +1,13 @@ +tmux new-session -s linkedag -d -c ~/repos/linkedag-backend -n backend +tmux split-window -h -c ~/repos/linkedag-backend +tmux send-keys -t linkedag:backend.0 'nvim' C-m +tmux send-keys -t linkedag:backend.1 'npm run dev' C-m + +tmux new-window -c ~/repos/linkedag -n frontend +tmux split-window -h -c ~/repos/linkedag +tmux send-keys -t linkedag:frontend.0 'nvim' C-m +tmux send-keys -t linkedag:frontend.1 'npm run dev' C-m + +tmux select-window -t linkedag:backend +tmux select-pane -t 0 +tmux -2 attach-session -t linkedag diff --git a/tmux-sessions/syncopotamus.sh b/tmux-sessions/syncopotamus.sh new file mode 100755 index 0000000..000c7c0 --- /dev/null +++ b/tmux-sessions/syncopotamus.sh @@ -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