tmux has-session
https://youtu.be/XucVVgGmesM
I see you there, trying to script out your tmux layouts. Tryig to get each
project setup just perfect with a script, but you keep stumbling over yourself
with duplicate session error messages
The has-session tmux command is a handy tool to prevent this duplicate session error message when scripting your tmux layouts.
command line # [1]
The command is pretty straight forward, you simply ask tmux if the session name
you are looking for exists.
tmux has-session -t "waylonwalker_com"
How I navigate tmux in 2021 [2]
for more information on how I navigate tmux, check out this full post
Also check out the full YouTube
tmux-playlist [3]
to see all of the videos in this series.
References:
[1]: #command-line
[2]: /tmux-nav-2021/
[3]: https://www.youtube.com/playlist?list=PLTRNG6WIHETB4reAxbWza3CZeP9KL6Bkr