Re:Getting Started with Tmux
by vasili111 on Sunday December 11, 2022 @10:46AM
(#33944107)
Could you please share your script?
[ Parent
| on HN ]
Can't post the specifics but something like this as a bash script, if you have any Qs LMK:
#!/usr/bin/env bash
tmux new-session -d -s sessionname
tmux rename-window todo
tmux send-keys -t todo "vim todo" Enter
tmux new-window -d -n dot
tmux send-keys -t dot "cd " Enter
tmux new-window -d -n windowname
tmux send-keys -t windowname "cd ~/reponame" Enter
tmux send-keys -t windowname "commands to run" Enter
tmux attach-session -d -t sessionname