tmux horizontal window splitting

To split terminal in to four horizontal tmux windows you can run the following code:

tmux new-window -a -n WinSplit
tmux new-session -d -s WinSplit
tmux selectp -t WinSplit
tmux split-window -v
tmux set-window-option -g window-status-current-bg blue
tmux split-window -v
tmux split-window -v
tmux select-layout even-vertical
tmux attach -t WinSplit

The result is something that looks like this:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.