function ta if tmux list-sessions echo "Tmux session found. Entering it now! --" sleep 0.5 tmux a else echo "No Tmux session found. Creating one now! --" tmux end end