feat(tmux): hook to rename window

This commit is contained in:
thek4n 2024-05-14 16:02:45 +03:00
parent 233aac4ed9
commit 75a9a1002e
2 changed files with 2 additions and 1 deletions

View File

@ -109,7 +109,6 @@ bind -n M-9 if-shell 'tmux select-window -t 9' '' 'new-window -t 9 -n 9'
bind -n M-0 if-shell 'tmux select-window -t 10' '' 'new-window -t 10 -n 10' bind -n M-0 if-shell 'tmux select-window -t 10' '' 'new-window -t 10 -n 10'
# Moving pane to window by Alt+Shift+Number # Moving pane to window by Alt+Shift+Number
bind -n 'M-!' join-pane -d -t :1 bind -n 'M-!' join-pane -d -t :1
bind -n 'M-@' join-pane -d -t :2 bind -n 'M-@' join-pane -d -t :2

View File

@ -22,6 +22,8 @@ set -g lock-command vlock # Shell command to lock client
set -g default-terminal "xterm-256color" set -g default-terminal "xterm-256color"
set -g terminal-overrides[101] "xterm-256color:Tc" set -g terminal-overrides[101] "xterm-256color:Tc"
set-hook -g after-new-session[101] 'rename-window -t 1 1'
set -g update-environment[101] 'DISPLAY' set -g update-environment[101] 'DISPLAY'
set -g update-environment[102] 'WINDOWID' set -g update-environment[102] 'WINDOWID'
set -g update-environment[103] 'XAUTHORITY' set -g update-environment[103] 'XAUTHORITY'