tmux

 
 
# 命令前缀 C-b给vim用的
set -g prefix2 C-s
set-option -g prefix C-a
bind-key C-a last-window

# 分割窗口
bind-key \ split-window -h
bind-key - split-window

# 窗口切换
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

# 文字编码
setw -q -g utf8 on

# 历史记录
set -g history-limit 20000

#窗口编号
set -g base-index 1          
setw -g pane-base-index 1

# prefix , 重命名窗口
set -wg allow-rename off                                                            
set -wg automatic-rename off

set -g mouse on

# prefix [ 进入copy模式,进行搜索,会看历史
set-window-option -g mode-keys vi

# clear both screen and history
bind -n C-l send-keys C-l \; run 'sleep 0.1' \; clear-history
相关文章
相关标签/搜索