sila终端多路复用器

联合创作 · 2023-10-01 13:35

sila 是使用 Rust 编写的简易终端多路复用器,通过 YAML 格式的配置文件配置项目。

sila 发音为 [shila],在巴利语中代表「道德」。

基本用法

> help

list                      List the terminal names.
pin     <term1> <term2>   Pin one or multiple terminals separated by space. Following commands will be run on top of pinned ones.
unpin   [term1]           Unpin all terminals if no argument is provided or the specific ones.
count                     Count the number of terminals.
exit                      Close the application.

功能

Piping 命令

> cat Cargo.toml | grep version

[PJ1]> cat Cargo.toml | grep version
version = "0.1.0"

[PJ2]> cat Cargo.toml | grep version
version = "0.2.0"
serde = { version = "1.0", features = ["derive"] }

[PJ3]> cat Cargo.toml | grep version
version = "0.1.0"

Pinning 终端

  • pin/unpin terminals and run a simple command only in a couple of terminals
> pin PJ1 PJ3
> ... run {command}
[PJ1]> {command}
[PJ3]> {command}

> unpin PJ1
>... run {command}
[PJ3]> {command}
...

Helper 命令

> help

list                      List the terminal names.
pin     <term1> <term2>   Pin one or multiple terminals separated by space. Following commands will be run on top of pinned ones.
unpin   [term1]           Unpin all terminals if no argument is provided or the specific ones.
count                     Count the number of terminals.
exit                      Close the application.
浏览 3
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报