Tmux: prevent closing final window for shell session via standard bind

This commit is contained in:
2025-01-21 13:41:24 -05:00
parent d0a9f639fd
commit f9a0ebcb50

View File

@@ -27,8 +27,11 @@ bind-key l select-pane -R
unbind o
unbind c
bind-key o new-window
bind-key c kill-window
# bind-key c kill-window
bind-key c if-shell -F '#{==:#{session_windows},1}' \
'display-message "This is the last window, cannot close it."' \
'kill-window'
# Window Renaming
set-option -g allow-rename off