I'd love to be able to write a script that checked for the presence of a tmux
session and attach it, or if no session exists, start a new one. So that I could create a custom command in my .zshrc
file, and not have to always check.
Is there a way to check programmatically that I have a tmux
screen session running?