Skip to content

docs: split From binary install steps into copy-paste-friendly blocks (#96)#159

Open
mvanhorn wants to merge 1 commit into
lima-vm:masterfrom
mvanhorn:docs/zsh-friendly-install-instructions-issue-96
Open

docs: split From binary install steps into copy-paste-friendly blocks (#96)#159
mvanhorn wants to merge 1 commit into
lima-vm:masterfrom
mvanhorn:docs/zsh-friendly-install-instructions-issue-96

Conversation

@mvanhorn

Copy link
Copy Markdown

Fixes #96.

What changed

The "From binary" install snippet in the README was one bash block that interleaved commands with # ... comments. Split it into separate blocks per step, with the explanatory text moved out into surrounding prose.

Why this matters

Interactive zsh does not treat # as a comment unless the user has run setopt interactivecomments. Pasting the original block into a default-config zsh produces:

quote>

…stuck on the unmatched apostrophe in # (Optional) Attest the GitHub Artifact Attestation using GitHub's gh command (...). The issue reproduced this exactly.

The format used here matches the proposal from #96 that @jandubois agreed to ("Works for me. It requires a bunch of clicking and pasting instead of copying it all at once, but I think that is fine."). Each step now stands as its own copy-pasteable block, and the comments become regular prose so they render normally instead of being inside the code fence.

Verification

  • All commands are unchanged; only the surrounding prose / fencing was edited.
  • Total ``` fence count is even (verified post-edit).
  • The two (Optional) steps are still clearly marked as optional.

@AkihiroSuda

Copy link
Copy Markdown
Member

@mvanhorn
mvanhorn force-pushed the docs/zsh-friendly-install-instructions-issue-96 branch 3 times, most recently from b41cd28 to 72792a9 Compare July 10, 2026 16:16
…lima-vm#96)

The current "From binary" install snippet is one large bash code block
that mixes commands with `# ...` comments. Interactive zsh treats `#`
as a literal token unless `setopt interactivecomments` is set, so a
user who copies the whole block and pastes it gets stuck on an unmatched
single quote ("GitHub's gh command"), which the issue reproduced.

Following the format proposed in the issue (and accepted by jandubois),
split each step into its own ```bash block with the explanatory comment
moved out into surrounding prose. Each block is now independently
copy-pasteable in zsh without needing interactivecomments enabled, and
the prose continues to document what each step does.

No commands changed; only the prose/code structure of the section.

Fixes lima-vm#96

Signed-off-by: Matt Van Horn <mvanhorn@gmail.com>
Signed-off-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
@mvanhorn
mvanhorn force-pushed the docs/zsh-friendly-install-instructions-issue-96 branch from 72792a9 to 6f6b5df Compare July 11, 2026 18:22
Comment thread README.md
FILE="socket_vmnet-${VERSION:1}-$(uname -m).tar.gz"
```

# Download the binary archive

@AkihiroSuda AkihiroSuda Jul 15, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternative ideas to keep it a single block:

  • Prepend [ -n "$ZSH_VERSION" ] && setopt interactive_comments
  • Or, use : instead of #

@mvanhorn

Copy link
Copy Markdown
Author

DCO is green now, along with all the build, clang-format, and integration checks. Ready for a re-review whenever you have a moment - thanks!

@AkihiroSuda

Copy link
Copy Markdown
Member

@mvanhorn PTAL
#159 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[zsh] Binary install instructions cannot be copied and pasted from the readme

2 participants