用途:通过 tmuxp YAML 配置创建、编辑、调试和优化 tmux 会话,适合搭建开发、基础设施与监控工作区。
主要能力:定义 session_name、start_directory、environment 环境变量、before_script/after_script 钩子,以及 windows、panes、layout 布局;支持 main-vertical、main-horizontal、even-horizontal、even-vertical、tiled 等布局,并可用 options 调整主窗格尺寸。
使用方式:常用命令包括 tmuxp load config-name、tmuxp load ./path/to/file.yaml、tmuxp load -y、tmuxp load -d、tmuxp ls、tmuxp freeze session-name、tmuxp convert file.json、tmuxp edit、tmuxp debug-info。可用 tmux display-message -p '#{window_layout}' 捕获现有布局。
限制与注意:session_name 不能含句点或冒号,避免直接用 ${USER};before_script 在全新 shell 中运行,不加载交互式 zsh 配置;shell_command_before 会在窗口每个窗格执行;环境变量在 YAML 加载时展开;多个 focus: true 会静默取最后一个;tmuxp freeze 捕获的是实时状态而非意图,需清理后再使用。生产环境建议加只读与警告保护。
资料未提供收费、价格、平台支持范围等细节。