On Linux, I'm used to having my tmux terminals automatically connect to my "default session". I achieve this by having my terminal shortcuts using the attach-session command. Inside my tmux.conf, I specify new-session, so that even if there's currently no active session, tmux will simply create one, so I can attach to it.
That same approach isn't working in psmux. That's an excerpt from my psmux config, which I translated from my Linux tmux config:
# We need to set default-shell before calling new-session
set -g default-shell "C:\Program Files\PowerShell\7\pwsh.exe"
new-session
However, this won't work when there's no session to attach to:
❯ psmux attach-session
psmux: can't find session '0' (no server running)
On Linux, I'm used to having my tmux terminals automatically connect to my "default session". I achieve this by having my terminal shortcuts using the
attach-sessioncommand. Inside mytmux.conf, I specifynew-session, so that even if there's currently no active session, tmux will simply create one, so I can attach to it.That same approach isn't working in psmux. That's an excerpt from my psmux config, which I translated from my Linux tmux config:
However, this won't work when there's no session to attach to: