r/PowerShell • • 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 vertical
  • Ctrl+b d — detach session | psmux attach — reattach
  • psmux ls — list sessions
  • psmux 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?

24 Upvotes

61 comments sorted by

View all comments

Show parent comment

1

u/Eddyi0202 Apr 04 '26

Yeah, I don't argue about powershell well..power and I admit that I feel that using is just as a shell feels wasteful but the issue is that that basically there is no real alternative on windows. Cmd, git bash, cmder and other things are limited. 

There is nushell which embrace similar concept of treating command output as objects as opposed to just text but it's relatively new. 

I get that WT is not tied in any way to pwsh, I use it with WSL a lot and must say that it's currently the best terminal emulator for windows. 

As for sessions, I only use them on my local machine, no remote ones. Maybe I am missing something but AFAIU from your answer it's still not possible to replicate tmux workflow with just pwsh(any other shell) + WT since WT does not support such concept as workspace/session (meaning a group of tabs/windows tied together) and ability to switch between them. 

One way would be to utilize window manager/virtual desktops altough it's not very efficient. 

Kinda off-topic but I guess agentic AI workflows might motivate terminal emulator creators to implement such concept since it's very usefull for organizing parallel work. 

2

u/uniquerunner Apr 04 '26

Claude Code Agent Teams works fantastically on Windows because of PSMUX!

Quite a few projects on github use PSMUX for Agentic use.

1

u/Eddyi0202 Apr 04 '26

Btw what's your goal with this project long term?
Are you going to just keep in sync with upstream or it will diverge in terms of features?

2

u/uniquerunner Apr 04 '26

It's aimed to only bringing Tmux on Windows. I think Tmux was a missing piece. I myself needed Tmux so badly on Windows and that's how this came about.

This project is limited to scope to only that. Slight corners maybe a bit better here and there, for example mouse support by default, the popup view for switching panes,etc Tmux in Linux needs a plugin to enable mouse support.

But, overall, it's aimed at making the existing Tmux cross platform by implementing an exact clone with different technologies for Windows. This doesn't use any part of the original Tmux source. It rebuilds everything again in Rust from the foundation all the way up.

Non Tmux features is left to Plugin creators and others who make use of Tmux/Psmux or create plugins for it.