fix(tmux): update tmux config
This commit is contained in:
@@ -39,10 +39,22 @@ bind-key -T root F7 select-window -t 7
|
|||||||
bind-key -T root F8 select-window -t 8
|
bind-key -T root F8 select-window -t 8
|
||||||
bind-key -T root F9 select-window -t 9
|
bind-key -T root F9 select-window -t 9
|
||||||
|
|
||||||
|
|
||||||
|
# bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'"
|
||||||
|
# bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
|
||||||
|
bind-key -T root S-F1 join-pane -s :1
|
||||||
|
bind-key -T root S-F2 join-pane -s :2
|
||||||
|
bind-key -T root S-F3 join-pane -s :3
|
||||||
|
bind-key -T root S-F4 join-pane -s :4
|
||||||
|
bind-key -T root S-F5 join-pane -s :5
|
||||||
|
bind-key -T root S-F6 join-pane -s :6
|
||||||
|
bind-key -T root S-F7 join-pane -s :7
|
||||||
|
bind-key -T root S-F8 join-pane -s :8
|
||||||
|
bind-key -T root S-F9 join-pane -s :9
|
||||||
|
|
||||||
# 1-based indexing makes most sense for keyboard layouts (where number row start at 1)
|
# 1-based indexing makes most sense for keyboard layouts (where number row start at 1)
|
||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
set -g pane-base-index 1
|
set -g pane-base-index 1
|
||||||
setw -g automatic-rename
|
|
||||||
|
|
||||||
# statusbar
|
# statusbar
|
||||||
set -g status-position top
|
set -g status-position top
|
||||||
@@ -75,3 +87,5 @@ set-hook -g after-new-session 'if -F "#{==:#{session_name},ssh}" "source ${XDG_C
|
|||||||
if-shell "test '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -ge 4 \)'" 'bind-key -Tcopy-mode-vi v send -X begin-selection; bind-key -Tcopy-mode-vi y send -X copy-selection-and-cancel'
|
if-shell "test '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -ge 4 \)'" 'bind-key -Tcopy-mode-vi v send -X begin-selection; bind-key -Tcopy-mode-vi y send -X copy-selection-and-cancel'
|
||||||
if-shell '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 4\) -o #{$TMUX_VERSION_MAJOR} -le 1' 'bind-key -t vi-copy v begin-selection; bind-key -t vi-copy y copy-selection'
|
if-shell '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 4\) -o #{$TMUX_VERSION_MAJOR} -le 1' 'bind-key -t vi-copy v begin-selection; bind-key -t vi-copy y copy-selection'
|
||||||
if-shell '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 2\) -o #{$TMUX_VERSION_MAJOR} -le 1' 'set-option -g status-utf8 on'
|
if-shell '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 2\) -o #{$TMUX_VERSION_MAJOR} -le 1' 'set-option -g status-utf8 on'
|
||||||
|
|
||||||
|
set -g allow-passthrough on
|
||||||
|
|||||||
Reference in New Issue
Block a user