Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question
    
not sure if tmux does the same thing as terminator, but if it does check that out, it's brilliant. –  Sirex Jul 1 '11 at 21:07

1 Answer 1

up vote 5 down vote accepted

Just add the following command before your tmux attach

tmux select-layout even-vertical
share|improve this answer
    
+1 for turning around and sharing what you just learned :) –  Caleb Jul 1 '11 at 20:02
    
Awesome! thanks :D –  hasenj Jul 2 '11 at 4:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.