function ta if command tmux list-sessions >/dev/null 2>&1 echo "Tmux session found. Entering it now! --" sleep 0.5 tmux a else echo "No Tmux session found. Creating one now! --" tmux end end