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
@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 #

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Went with the setopt approach in 9da382f: back to a single block, with the guard as the first line so zsh accepts the # comments when pasted. Thanks for the pointer.

@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)

@AkihiroSuda

Copy link
Copy Markdown
Member

Please squash the commits

@mvanhorn
mvanhorn force-pushed the docs/zsh-friendly-install-instructions-issue-96 branch from 9da382f to bf48a52 Compare July 20, 2026 14:32
@AkihiroSuda AkihiroSuda added this to the v1.3.0 milestone Jul 21, 2026
@AkihiroSuda

Copy link
Copy Markdown
Member

ping @mvanhorn

@mvanhorn
mvanhorn force-pushed the docs/zsh-friendly-install-instructions-issue-96 branch from bf48a52 to a34d18b Compare August 2, 2026 20:26
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 a34d18b to 3a06135 Compare August 2, 2026 22:22
@mvanhorn

mvanhorn commented Aug 6, 2026

Copy link
Copy Markdown
Author

Both done, sorry for the lag. Squashed to a single signed-off commit, and rather than splitting the block I went with your first suggestion: it now prepends [ -n "$ZSH_VERSION" ] && setopt interactive_comments and stays one copy-paste block.

Ready for a re-review whenever you have a moment.

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