Skip to content

new-session inside psmux.conf not working as it does on Linux #362

@twz123

Description

@twz123

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions