Is there a way to check programatically that I have a tmux screen session running? 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.
|
feedback
|
|
There is an answer over on StackOverflow http://stackoverflow.com/questions/3432536/tmux-create-session-if-none-exists
| |||
|
feedback
|