mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-07 07:36:00 +02:00
vhs: update page (#17518)
This commit is contained in:
parent
2e8b471359
commit
ab0ece6f0b
1 changed files with 10 additions and 6 deletions
|
@ -1,28 +1,32 @@
|
||||||
# vhs
|
# vhs
|
||||||
|
|
||||||
> Generate terminal gifs from a tape file.
|
> Generate terminal GIFs from a tape file.
|
||||||
> More information: <https://github.com/charmbracelet/vhs>.
|
> More information: <https://github.com/charmbracelet/vhs>.
|
||||||
|
|
||||||
- Create a tape file (add commands to the tape file using an editor):
|
- Create a tape file (add commands to the tape file using an editor):
|
||||||
|
|
||||||
`vhs new {{path/to/file.tape}}`
|
`vhs new {{path/to/file.tape}}`
|
||||||
|
|
||||||
- Record inputs to a tape file (once done, exit the shell to create the tape):
|
- Record inputs to a tape file:
|
||||||
|
|
||||||
`vhs record > {{path/to/file.tape}}`
|
`vhs record > {{path/to/file.tape}}`
|
||||||
|
|
||||||
- Record inputs to a tape file using a specific shell:
|
- Record inputs to a tape file using a specific shell:
|
||||||
|
|
||||||
`vhs record --shell {{shell}} > {{path/to/file.tape}}`
|
`vhs record {{[-s|--shell]}} {{shell}} > {{path/to/file.tape}}`
|
||||||
|
|
||||||
|
- Stop recording:
|
||||||
|
|
||||||
|
`exit`
|
||||||
|
|
||||||
- Validate the syntax of a tape file:
|
- Validate the syntax of a tape file:
|
||||||
|
|
||||||
`vhs validate {{path/to/file.tape}}`
|
`vhs validate {{path/to/file.tape}}`
|
||||||
|
|
||||||
- Create a gif from a tape file:
|
- Create a GIF from a tape file:
|
||||||
|
|
||||||
`vhs < {{path/to/file.tape}}`
|
`vhs {{path/to/file.tape}}`
|
||||||
|
|
||||||
- Publish a gif to <https://vhs.charm.sh> and get a shareable URL:
|
- Publish a GIF to <https://vhs.charm.sh> and get a shareable URL:
|
||||||
|
|
||||||
`vhs publish {{path/to/file.gif}}`
|
`vhs publish {{path/to/file.gif}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue