feat(tmux): hook to rename window
This commit is contained in:
parent
233aac4ed9
commit
75a9a1002e
@ -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'
|
||||
|
||||
|
||||
|
||||
# Moving pane to window by Alt+Shift+Number
|
||||
bind -n 'M-!' join-pane -d -t :1
|
||||
bind -n 'M-@' join-pane -d -t :2
|
||||
|
||||
@ -22,6 +22,8 @@ set -g lock-command vlock # Shell command to lock client
|
||||
set -g default-terminal "xterm-256color"
|
||||
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[102] 'WINDOWID'
|
||||
set -g update-environment[103] 'XAUTHORITY'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user