helsonlin
helsonlin
发布于 2024-11-25 / 18 阅读
0
0

Asciinema & agg 终端录制和播放

快速开始

克隆项目并构建

git clone https://github.com/asciinema/asciinema
cd asciinema
cargo build --release

设置环境变量

# 复制文件到/usr/local/bin
cp $PWD/target/release/asciinema /usr/local/bin
# 编辑fish配置
vim ~/.config/fish/config.fish
# 添加如下代码:设置命令
alias asciinema="/usr/local/bin/asciinema"

开始录制

# 测试是否正常使用
asciinema -v

Terminal session recorder

Usage: asciinema [OPTIONS] <COMMAND>

Commands:
  rec      Record a terminal session 
  play     Replay a terminal session
  stream   Stream a terminal session
  cat      Concatenate multiple recordings
  convert  Convert a recording into another format
  upload   Upload a recording to an asciinema server
  auth     Authenticate this CLI with an asciinema server account
  help     Print this message or the help of the given subcommand(s)


评论