tmux horizontal window splitting

January 24, 2019

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: