Skip to content

Hide doesn't seem to hide the output in Zsh? #674

@vrmiguel

Description

@vrmiguel

First of all, great work on this project, impressive stuff!

Describe the bug

Commands in between Hide and Show tags are still making their way into the GIF. I'm super new to using VHS so this could very well just be user error, but my usage seems to agree with what the README states regarding Hide

Setup
Please complete the following information along with version numbers, if applicable.

  • OS: macOS 26.0.1 (25A362)
  • Shell: zsh 5.9 (arm64-apple-darwin25.0)
  • Terminal Emulator: built-in macOS Terminal, v. 2.15
  • Terminal Multiplexer [e.g. tmux]: none
  • vhs: 0.10.0, from Homebrew

To Reproduce

My full .vhs is:

Output demo.gif

Require echo

Set Shell "zsh"
Set TypingSpeed 75ms
Set FontSize 20
Set Width 1300
Set Height 1000

Hide
Type "autoload -Uz compinit"
Enter
Type "compinit"
Enter
Show

Type "scog myapp.yaml" Sleep 500ms  Enter

Sleep 3s

Type "source completions/_myapp" Sleep 500ms  Enter

Type "myapp b" Sleep 250ms Tab

Sleep 2s

Expected behavior

Not see autoload -Uz compinit and compinit in the resulting GIF

Screenshots

Full GIF:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions