AutoYADM commit: 2024-12-22 19:15:02
This commit is contained in:
parent
85222145bf
commit
a885dec5c8
3 changed files with 14 additions and 3 deletions
8
.config/tmux/confirm_kill_pane.sh
Executable file
8
.config/tmux/confirm_kill_pane.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Function to check if killing the pane would kill the session
|
||||
if [ "$(tmux list-panes -F '#{pane_id}' | wc -l)" -eq 1 ]; then
|
||||
tmux confirm-before -p "Kill window? (y/n): " "kill-pane"
|
||||
else
|
||||
tmux kill-pane
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue