Tmux

https://www.notion.so/Tmux-a707f0e703e944c8a0a9a2e1bedf4929

Installing

bookmark

Script Examples

Start a main pane with other panes

1
2
3
4
5
6
7
8
9
10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+                                                                      +
+                                                                      +
+                                  main                                +
+                                                                      +
+                                                                      +
+                                                                      +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+           a         +           b           +            c           +   
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1
2
3
4
5
6
7
8
9
10
tmux new-session -d -s sessionName; \
tmux split-window -v; \
tmux send-keys "echo a" Enter; \
tmux split-window -v; \
tmux send-keys "echo b" Enter; \
tmux split-window -v; \
tmux send-keys "echo c" Enter; \
tmux select-layout main-horizontal; \
tmux select-pane -t 0; \
tmux a;

Start there same size panes

1
2
3
4
5
6
7
8
tmux new-session -d -s sessionName; \
tmux send-keys "echo a" Enter; \
tmux split-window -v; \
tmux send-keys "echo b" Enter; \
tmux split-window -v; \
tmux send-keys "echo c" Enter; \
tmux select-layout even-horizontal; \
tmux a;

Others

1
2
3
4
5
6
7
8
9
10
11
# Layouts
tmux select-layout main-vertical
tmux select-layout main-horizontal 
tmux select-layout even-vertical
tmux select-layout even-horizontal

# Enable pane border labels
tmux set pane-border-status top

#Enable Mouse
tmux set mouse on

Oh my tmux

https://github.com/gpakosz/.tmux

Do not forget to source your config file via:

1
tmux source-file ~/.tmux.conf.local
This post is licensed under CC BY 4.0 by the author.