New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tmux module] Auto-start Only creates default session if none created in tmux.conf #575
[tmux module] Auto-start Only creates default session if none created in tmux.conf #575
Conversation
Is the second |
tmux kills the server if no session. We must restart it if tmux.conf doesn't create any. So yeah, it's required. See this comment #544 (comment) and the discussion around it for details. |
👍 ! I use this code and it is definitely superior to the current setup (which I criticised in #544 (comment)) as I now end up with only my custom session (if defined in tmux.conf) and no additional prezto session being started. And if there's no session defined in tmux.conf, the prezto session is started and attached automatically. |
Been using this for a few days now and it seems perfectly fine! |
Glad to hear that. Thanks for the follow up. |
i think you can remove the second "server-start" from within the if statement and will achieve the same thing. |
Unfortunately not. By design, tmux kills the server if there's no active session. The point of this is to handle the case where your tmux.conf creates sessions. In this case, you won't need to default |
i just tested this and it does work just fine. |
Agreed. Updated. |
Merged via ff0dfa4. |
(refs #544) As per @nasenatmer remark