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
0
u/dodexahedron Apr 04 '26
Off topic but prompted by that, if you're using a modern terminal like WT:
Be sure you set your TERM environment variable to xterm-direct in your linux environment, and then install and run btop. That one is perty. Setting TERM to that or any other actually non-ancient and appropriate setting can have a pretty pleasant impact on quite a few apps at the command line, regardless of shell. Mostly, you want the ones ending in
-direct. But some programs have bugs or are hard coded poorly so the one that looks like it should be best (ms-terminal-direct) can sometimes cause weird output, even though it is based on xterm-direct. xterm-direct is safe and adds a ton over the typical xterm, linux, or xterm-256color values that are most common.Also, setting COLORTERM=truecolor is another one various ncurses-based apps use to gate their output.
Note: Most ssh servers filter those env vars out from the client by default, so they have to go in your
.profileon the destination.