AutoYADM commit: 2024-12-22 19:15:02

This commit is contained in:
Daniel Fichtinger 2024-12-22 19:15:02 -05:00
parent 85222145bf
commit a885dec5c8
3 changed files with 14 additions and 3 deletions

View 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