多路复用器
pmux 是一个可编程多路复用器,它采用 JSON 文件或 node.js 脚本,该脚本描述了要在 tmux 会话中在 windows 中执行的一系列命令。
入门
使用以下命令安装 pmux:
npm install -g pmux
使用以下命令执行 pmux:
pmux <path>
例子
basic_pmux_configuration.json :
{
"name": "simple_example",
"pre_commands": ["ls"],
"windows": {
"pwd": {
"commands": ["pwd"],
"dir" : "."
}
}
}
调用pmux examples/basic_pmux_configuration.json将