Configs2026年7月22日·1 分钟阅读

psmux — Native tmux for Windows PowerShell and Terminal

A high-performance terminal multiplexer for Windows built in Rust. Provides tmux-style panes, windows, and sessions natively in PowerShell and Windows Terminal.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
psmux
直接安装命令
npx -y tokrepo@latest install 4d156d25-85aa-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

psmux brings tmux-style terminal multiplexing to Windows natively. Built in Rust, it provides split panes, multiple windows, and persistent sessions directly in PowerShell, Windows Terminal, and cmd.exe without requiring WSL or Cygwin.

What psmux Does

  • Splits the terminal into multiple panes horizontally and vertically
  • Manages multiple windows within a single terminal session
  • Persists sessions that survive terminal disconnects
  • Provides tmux-compatible keybindings for easy adoption
  • Runs natively on Windows without WSL or Unix compatibility layers

Architecture Overview

psmux is implemented in Rust using the Windows Console API and ConPTY for pseudo-terminal support. Each pane runs an independent shell process with its own I/O streams. The multiplexer manages rendering, input routing, and session state in a single lightweight process. Session persistence uses named pipes for client-server communication.

Self-Hosting & Configuration

  • Install via cargo: cargo install psmux
  • Or install via Scoop package manager
  • Configure keybindings in ~/.psmux/config.toml
  • Set default shell (PowerShell, cmd, or pwsh) in config
  • Customize status bar appearance and colors

Key Features

  • Native Windows terminal multiplexer with no Unix dependencies
  • tmux-compatible keybindings for muscle memory transfer
  • Session persistence across terminal disconnects
  • Works in PowerShell, Windows Terminal, and cmd.exe
  • Lightweight single binary with fast startup

Comparison with Similar Tools

  • tmux — Unix only; psmux brings the same workflow to native Windows
  • Windows Terminal tabs — Basic tabs only; psmux adds split panes and session persistence
  • Zellij — Cross-platform but requires WSL on Windows; psmux is native
  • Screen — Unix terminal multiplexer; psmux is its Windows-native equivalent

FAQ

Q: Does it work without Windows Terminal? A: Yes, psmux works in any Windows console including cmd.exe and ConEmu, though Windows Terminal provides the best rendering.

Q: Are tmux keybindings supported? A: Yes, the default keybindings mirror tmux. You can customize them in the config file.

Q: Can I use it with WSL? A: psmux is designed for native Windows shells. For WSL, use tmux directly inside the Linux environment.

Q: Does it support mouse interactions? A: Yes, mouse support for pane selection and resizing is available in compatible terminals.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产