r/PowerShell • u/uniquerunner • Feb 10 '26
PSMUX: Native tmux for PowerShell — split panes, sessions, detach/attach — no WSL needed
For anyone who's wanted tmux functionality in PowerShell without installing WSL:
psmux is a native Windows terminal multiplexer that works exactly like tmux. Same commands, same keybindings, zero learning curve if you already know tmux.
Why this exists:
- Needed tmux-style session management on Windows servers
- Didn't want WSL overhead just for terminal multiplexing
- Wanted to SSH into Windows boxes and still have pane splitting
Quick install:
winget install psmux
or
cargo install psmux
Or: scoop install psmux | choco install psmux
What you get:
Ctrl+b %— split horizontal |Ctrl+b "— split verticalCtrl+b d— detach session |psmux attach— reattachpsmux ls— list sessionspsmux new-session -s work— named sessions- Mouse support for pane resizing
- Copy mode with vim keybindings
- Scriptable (send-keys, capture-pane, etc.)
The tmux command alias is included, so your muscle memory works.
Just⭐the repo if you like it and feel free to raise any issues
Repo: https://github.com/psmux/psmux
Developed and actively maintained with LOTs of ❤️ for Powershell
Anyone using terminal multiplexing on Windows? What's your current setup?
View all comments
Show parent comment
3
u/dodexahedron Apr 04 '26
Create:
New-PSSessionif just raw PS. For window/tab management, use the various wt arguments that are similar to tmux.Detach: exit (does not end remote OR loopback sessions by default)
Switch: (Connect|Enter|Receive)-PSSession
For an overview of a range of session handling capabilities:
Get-Help about_PSSessionsAnd if running from windows terminal, here's full help for all pssession cmdlets, each in its own tab in the current window named for the command help being displayed:
get-command -Noun PSSession |% { wt -w 0 nt --title $_.Name -- pwsh -NoLogo -c "Get-Help -Full $($_.Name)" }Also of note for things that don't need interactivity, be sure to check out about_Jobs and related topics.
And if you are working on remote systems and using PowerShell remoting over SSH, all you have to do is use
-Optionswith New-PSSession or your ssh_config file to use ssh native multiplexing to the remote host over a single socket, on top of it all.