update tmux deprecated function

This commit is contained in:
Nachuan Tang
2023-02-13 16:18:37 -05:00
parent e7d8431e0e
commit 01b1328186
+10 -9
View File
@@ -1,22 +1,23 @@
set-option -sg escape-time 10
set-option -g default-terminal "screen-256color"
set-option -g history-limit 6000
set-option -sa terminal-overrides ',xterm-256color:RGB'
setw -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind -T copy-mode-vi 'y' send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
bind-key -T copy-mode-vi 'y' send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
# vim-like pane resizing
bind -r C-k resize-pane -U
bind -r C-j resize-pane -D
bind -r C-h resize-pane -L
bind -r C-l resize-pane -R
bind-key -r C-k resize-pane -U
bind-key -r C-j resize-pane -D
bind-key -r C-h resize-pane -L
bind-key -r C-l resize-pane -R
# vim-like pane switching
bind -n C-k select-pane -U
bind -n C-j select-pane -D
bind -n C-h select-pane -L
bind -n C-l select-pane -R
bind-key -n C-k select-pane -U
bind-key -n C-j select-pane -D
bind-key -n C-h select-pane -L
bind-key -n C-l select-pane -R
# and now unbind keys
unbind Up