Running several commands in a screen-split

gnu-screentmux

I have a few long running commands that I would like to run together in the same screen (same tab in the terminal app).

My current setup is like this:

tmux new-session -d 'cmd1'
tmux split-window 'cmd2'
tmux split-window 'cmd3'
tmux attach

However, it seems that tmux split-window actually splits the last split, so if I run several command this way, the first command gets half the screen, and the other commands get progressively smaller and smaller parts.

Is there a simpler way that runs all commands in equal-sized splits?

Best Answer

Just add the following command before your tmux attach

tmux select-layout even-vertical
Related Question