bind -n M-1 select-window -t 1 bind -n M-2 select-window -t 2 bind -n M-3 select-window -t 3 bind -n M-4 select-window -t 4 bind -n M-5 select-window -t 5 bind -n M-6 select-window -t 6 bind -n M-7 select-window -t 7 bind -n M-8 select-window -t 8 bin...
常用配置 bind-n M-1select-window -t1bind-n M-2select-window -t2bind-n M-3select-window -t3bind-n M-4select-window -t4bind-n M-5select-window -t5bind-n M-6select-window -t6bind-n M-7select-window -t7bind-n M-8select-window -t8bind-n M-9select-window -t9bind-n M-0sel...
1.tmux source-file .tmux.conf tmux unbind C-b tmux set -g prefix C-a 左右上下pane切换快捷键 -> alt + arrow (上下左右的光标) tmux bind -n M-Left select-pane -L tmux bind -n M-Right select-pane -R tmux bind -n M-Up select-pane -U tmux bind -n M-Down select-pane -D 参...
bind -n S-Right next-window # Mouse mode set -g mouse on # Set easier window split keys bind-key v split-window -h bind-key h split-window -v # Easy config reload bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded" 如果根目录文件没有conf那就去创建一个 ...
CTRL+ALT+上方向键 来垂直分屏 bind -n C-M-Left previous-window bind -n C-M-Right next-window bind -n C-M-Up split-window -h bind -n C-M-Down new-window # 标签栏的设置 set -g status-bg blue set -g status-fg white set -g window-status-current-style bg=red set -g window-...
unbind C-NPage unbind C-PPage bind -n C-PPage previous-window bind -n C-NPage next-window bind P paste-buffer bind r source-file ~/.tmux.conf \; display "Reloaded!" bind \ split-window -h bind - split-window -v bind h select-pane -L ...
select-window off # 设置默认终端模式为 256color set -g default-terminal "screen-256color" # 启用活动警告 setw -g monitor-activity on set -g visual-activity on # 居中窗口列表 set -g status-justify centre # 最大化/恢复窗格 unbind Up bind Up new-window -d -n tmp \; swap-pane -s ...
#更换前置键 为ctrl+aset-option -g prefix C-aunbind-key C-bbind-key C-a send-prefix 选择pane #通过pre+hjkl进行左上下右选择panebind h select-pane -Lbind j select-pane -Dbind k select-pane -Ubind l select-pane -R#通过alt+上下左右方向键选择panebind -n M-Left select-pane -Lbind ...
unbind Up bind Up new-window -d -n tmp \; swap-pane -s tmp.1 \; select-window -t tmp unbind Down bind Down last-window \; swap-pane -s tmp.1 \; kill-window -t tmp 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. ...
bind R source-file ~/.tmux.conf \; display-message "Config reloaded..." # Ctrl-Left/Right cycles thru windows (no prefix) # 不使用prefix键,使用Ctrl和左右方向键方便切换窗口 bind-key -n "C-Left" select-window -t :- bind-key -n "C-Right" select-window -t :+ ...