8

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?

1
  • not sure if tmux does the same thing as terminator, but if it does check that out, it's brilliant.
    – Sirex
    Jul 1, 2011 at 21:07

1 Answer 1

9

Just add the following command before your tmux attach

tmux select-layout even-vertical
1
  • +1 for turning around and sharing what you just learned :)
    – Caleb
    Jul 1, 2011 at 20:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .