tmux switch select window with Alt+Digit and swap with Alt+Shift+Digit

also bind S to new session
This commit is contained in:
Łukasz Pankowski 2024-06-21 21:15:55 +02:00
parent b032608fd9
commit 8c303ca0d1

View File

@ -12,10 +12,30 @@ bind-key -n M-K switch-client -p
bind-key -n M-H previous-window bind-key -n M-H previous-window
bind-key -n M-L next-window bind-key -n M-L next-window
bind-key T switch-client -l bind-key -n M-1 select-window -t 1
bind-key -n M-2 select-window -t 2
bind-key -n M-3 select-window -t 3
bind-key -n M-4 select-window -t 4
bind-key -n M-5 select-window -t 5
bind-key -n M-6 select-window -t 6
bind-key -n M-7 select-window -t 7
bind-key -n M-8 select-window -t 8
bind-key -n M-9 select-window -t 9
bind-key -n M-0 select-window -t 10
bind -n C-S-Left swap-window -t -1 bind-key -n M-! swap-window -t 1
bind -n C-S-Right swap-window -t 1 bind-key -n M-@ swap-window -t 2
bind-key -n M-# swap-window -t 3
bind-key -n M-$ swap-window -t 4
bind-key -n M-% swap-window -t 5
bind-key -n M-^ swap-window -t 6
bind-key -n M-& swap-window -t 7
bind-key -n M-* swap-window -t 8
bind-key -n M-( swap-window -t 9
bind-key -n M-) swap-window -t 10
bind-key S new-session
bind-key T switch-client -l
set -g default-terminal "screen-256color" set -g default-terminal "screen-256color"
set -as terminal-features ",*:RGB" set -as terminal-features ",*:RGB"