session-kill-all.tmux
1 #!/usr/bin/env bash 2 3 # Sets terminal color support 4 export TERM=screen-256color 5 6 NC='\033[0m' # No Color 7 BOLD=$(tput -T linux bold) 8 9 echo -e "🚨🚨🚨 ${BOLD} Are you sure you want to kill all sessions??? ${NC} 🚨🚨🚨 \n\n\n" 10 select yn in "Yes" "No"; do 11 case $yn in 12 Yes) 13 killall tmux 14 break 15 ;; 16 No) exit ;; 17 esac 18 done