Files
tldr/pages.zh/common/vhs.md

28 lines
697 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# vhs
> 从磁带文件生成终端 GIF。
> 更多信息:<https://github.com/charmbracelet/vhs>。
- 创建一个磁带文件(使用编辑器向磁带文件添加命令):
`vhs new {{path/to/file.tape}}`
- 将输入记录到磁带文件中(完成后,退出 shell 以创建磁带):
`vhs record > {{path/to/file.tape}}`
- 使用特定 shell 将输入记录到磁带文件中:
`vhs record --shell {{shell}} > {{path/to/file.tape}}`
- 验证磁带文件的语法:
`vhs validate {{path/to/file.tape}}`
- 从磁带文件创建 GIF
`vhs < {{path/to/file.tape}}`
- 将 GIF 发布到 <https://vhs.charm.sh> 并获取可分享的 URL
`vhs publish {{path/to/file.gif}}`