Files
linux-setup/tmux-sessions/linkedag.sh
2024-03-23 09:19:59 -07:00

14 lines
515 B
Bash
Executable File

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