### tmux 修改~/.tmux.conf 后重启tmux即可 ```text # Send prefix set-option -g prefix C-a unbind-key C-a bind-key C-a send-prefix # Use Alt-arrow keys to switch panes bind -n M-Left select-pane -L bind -n M-Right select-pane -R bind -n M-Up select-pane -U bind -n M-Down select-pane -D # Shift arrow to switch windows bind -n S-Left previous-window bind -n S-Right next-window bind Escape copy-mode # 绑定esc键为进入复制模式 # 绑定hjkl键为面板切换的上下左右键 bind -r k select-pane -U # 绑定k为↑ bind -r j select-pane -D # 绑定j为↓ bind -r h select-pane -L # 绑定h为← bind -r l select-pane -R # 绑定l为→ # 垂直方向新增面板,默认进入当前目录 unbind '"' bind - splitw -v -c '#{pane_current_path}' # 水平方向新增面板,默认进入当前目录 unbind % bind | splitw -h -c '#{pane_current_path}' #search mode: ctrl +b / bind-key / copy-mode \; send-key ? # Easy config reload bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded" ```