Files
2026-04-17 09:01:34 -05:00

36 lines
545 B
Bash
Executable File

#!/bin/bash
echo -e "\033[36m"Tmux Manager"\033[0m"
echo ""
echo -e "\033[1m"[1] New Session"\033[0m"
echo -e "\033[1m"[2] Attach Session"\033[0m"
echo -e "\033[1m"[3] Detach Session"\033[0m"
echo ""
echo -n "What did you want: "
read answer
case $answer in
1)
echo ""
read -p "Name for the new session: " name
tmux new -s $name
;;
2)
echo "Open Tmux Sessions: "
tmux ls
echo ""
read -p "Which one do you want to attached to: " atname
tmux attach -t $atname
;;
3)
tmux detach
;;
*)
echo "unknown answer"
;;
esac