contrib: add initial zsh completion for bitcoin-cli #34364

pull crackedhandle wants to merge 1 commits into bitcoin:master from crackedhandle:contrib/zsh-completions changing 1 files +27 −0
  1. crackedhandle commented at 9:32 am on January 21, 2026: none

    Bitcoin Core currently provides shell completion scripts for bash and fish in contrib/completions/, but zsh (which is the default shell on macOS and widely used by developers) does not have any native completion support for Bitcoin Core command-line tools.

    This means users of zsh do not get tab-completion for bitcoin-cli, making it harder to discover commands and increasing the chance of typing mistakes.

    This was reported in Issue #33404: “Add zsh completion scripts for Bitcoin Core command-line tools”

    What was needed

    A native zsh completion script (not bash-compat mode)

    Located in contrib/completions/zsh/

    A minimal, correct starting point that can be extended incrementally

    What this PR does

    Adds a new directory: contrib/completions/zsh/

    Adds an initial zsh completion script: contrib/completions/zsh/_bitcoin-cli

    Provides:

    Subcommand completion for common bitcoin-cli commands

    Basic argument and file-path completion

    The implementation is intentionally conservative and minimal, and can be extended in follow-up PRs to reach feature parity with the bash completion.

    Why this approach

    Keeps the change small, reviewable, and safe

    Avoids large auto-generated or brittle completion logic

    Establishes the correct structure and location for future zsh completions

    Fixes #33404

  2. contrib: add initial zsh completion for bitcoin-cli 0b49df0ffd
  3. DrahtBot added the label Scripts and tools on Jan 21, 2026
  4. DrahtBot commented at 9:32 am on January 21, 2026: contributor

    ♻️ Automatically closing for now based on heuristics. Please leave a comment, if this was erroneous. Generally, please focus on creating high-quality, original content that demonstrates a clear understanding of the project’s requirements and goals.

    📝 Moderators: If this is spam, please replace the title with ., so that the thread does not appear in search results.

  5. DrahtBot closed this on Jan 21, 2026

  6. DrahtBot commented at 9:32 am on January 21, 2026: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/34364.

    Reviews

    See the guideline for information on the review process. A summary of reviews will appear here.

  7. crackedhandle commented at 9:34 am on January 21, 2026: none
    This PR is an initial implementation for issue #33404. It adds a minimal native zsh completion for bitcoin-cli under contrib/completions/zsh/ as a starting point. The implementation is intentionally conservative and will be extended in follow-up PRs. Please reopen if this looks acceptable.
  8. maflcko commented at 9:43 am on January 21, 2026: member

    This PR is an initial implementation for issue #33404. It adds a minimal native zsh completion for bitcoin-cli under contrib/completions/zsh/ as a starting point. The implementation is intentionally conservative and will be extended in follow-up PRs. Please reopen if this looks acceptable.

    Instead of dropping purely LLM generated ai slop to duplicate an existing pull request, it would be more useful to just review the existing pull request and provide meaningful feedback.

  9. crackedhandle commented at 10:47 am on January 21, 2026: none

    This PR is an initial implementation for issue #33404. It adds a minimal native zsh completion for bitcoin-cli under contrib/completions/zsh/ as a starting point. The implementation is intentionally conservative and will be extended in follow-up PRs. Please reopen if this looks acceptable.

    Instead of dropping purely LLM generated ai slop to duplicate an existing pull request, it would be more useful to just review the existing pull request and provide meaningful feedback.

    Thanks for the feedback — and sorry about that.

    I didn’t realize there was already an active PR covering this work, and I should have looked more carefully before opening a separate one. That’s my mistake.

    I’ll review the existing PR and provide concrete, technical feedback there.

    Thanks for pointing this out.

    I didn’t know that LLM based pictures are prohibited here, I used that pic just to explain everything in simple form


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-01-27 06:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me