紀錄 tmux 設定檔
# creat .tmux.conf file
vim ~/.tmux.conf
# reload tmux config
tmux source-file ~/.tmux.conf
# list tmux sessions
tmux ls
- Change prefix from 'Ctrl+B' to 'Ctrl+A'
- Using the mouse on a pane
prefix + h
andprefix + C-h
select pane on the leftprefix + j
andprefix + C-j
select pane below the current oneprefix + k
andprefix + C-k
select pane aboveprefix + l
andprefix + C-l
select pane on the right
Note: This overrides tmux's default binding for toggling between last
active windows, prefix + l
.
tmux-sensible gives you
a better binding for that, prefix + a
(if your prefix is C-a
).
prefix + shift + h
resize current pane 5 cells to the leftprefix + shift + j
resize 5 cells in the down directionprefix + shift + k
resize 5 cells in the up directionprefix + shift + l
resize 5 cells to the right
These mappings are repeatable
.
The amount of cells to resize can be configured with @pane_resize
option. See
configuration section for the details.
prefix + |
split the current pane into two, left and right.prefix + -
split the current pane into two, top and bottom.prefix + \
split current pane full width into two, left and right.prefix + _
split current pane full height into two, top and bottom.
Newly created pane always has the same path as the original pane.
prefix + <
- moves current window one position to the leftprefix + >
- moves current window one position to the right