

I want to focus the window I want at the end of the script.I want to run arbitrary commands in each of the panes, persisted in history.


To split it horizontal or vertical use split-window -h or -v subsequently, like that: tmux new-session \ split-window -v \ split-window -h \ Here are my learnings: tmux new-session \ I was trying to create a complex grid of panes and had to deal with switching and splitting panes over and over again.
