You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
396 B
Bash
8 lines
396 B
Bash
#!/usr/bin/env sh
|
|
if [ "$(tmux list-sessions | wc -l)" = 1 ]; then
|
|
tmux confirm-before -p "Only single session active, kill-server instead (y/n)?" kill-server
|
|
else
|
|
tmux confirm-before -p "Kill #S session (y/n)?" "run-shell 'tmux switch-client -p \; kill-session -t \"#S\"'"
|
|
# tmux confirm-before -p "Kill #S session (y/n)?" "run-shell 'tmux switch-client -l \; kill-session -t \"#S\"'"
|
|
fi
|