Quick tmux commands:
NOTE: [ consider all following key is after the combination (ctrl-b) [ In standard configuration ]
split tmux vertically : %
split tmux horizontally : "
Moving between panes:
Move Left : left arrow or {
Move Right : right arrow or }
Move Up : up arrow
Move Down : down arrow
next pane : o
show number of each panes and move: b q + number
Resizing panes
You may want to resize panes to fit your need. Here’s a list how to do that :
(Ctrl-b) + : then type resize-pane -D (Resizes the current pane down)
(Ctrl-b) + : then type resize-pane -U (Resizes the current pane upward)
(Ctrl-b) + : then type resize-pane -L (Resizes the current pane left)
(Ctrl-b) + : then type resize-pane -R (Resizes the current pane right)
(Ctrl-b) + : then type resize-pane -D 5 (Resizes the current pane down by 5 cells)
(Ctrl-b) + : then type resize-pane -U 5 (Resizes the current pane upward by 5 cells)
(Ctrl-b) + : then type resize-pane -L 5 (Resizes the current pane left by 5 cells)
(Ctrl-b) + : then type resize-pane -R 5 (Resizes the current pane right by 5 cells)
(Ctrl-b) + : then type resize-pane -t 2 5 (Resizes the pane with the id of 2 down by 5 cells)
(Ctrl-b) + : then type resize-pane -t -L 5 (Resizes the pane with the id of 2 left by 5 cells)
press (Ctrl-b) + : resize-pane -D 13 to make it down for 13 cells.
create more window: ctrl-b c
(Ctrl-b) + n : Move to next window
(Ctrl-b) + p : Move to previous window
(Ctrl-b) + w : Interactively choose the window (useful if you have more than 2 window)
Detached: ctrl-b d
Listing the tmux session: tmux ls
attaching the tmux session: tmux attach -t <session-name>
### sync tmux panes ###
Ctrl-B :
setw synchronize-panes on
clear history
No comments:
Post a Comment