hermes - 💡(How to fix) Fix zsh completion breaks for compinit/~/.zfunc installs [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

hermes completion zsh generates an invalid zsh completion script for compinit / ~/.zfunc/_hermes installs.

Two concrete problems showed up on my machine:

  1. the generated file ended with _hermes "$@", which is wrong for an autoloaded completion file under compinit
  2. the top-level _arguments spec used invalid syntax like:
'(-h --help){-h,--help}[Show help and exit]'

Pressing Tab then produced:

_arguments:comparguments:327: invalid argument: (-h --help){-h,--help}[Show help and exit]

Root Cause

hermes completion zsh generates an invalid zsh completion script for compinit / ~/.zfunc/_hermes installs.

Two concrete problems showed up on my machine:

  1. the generated file ended with _hermes "$@", which is wrong for an autoloaded completion file under compinit
  2. the top-level _arguments spec used invalid syntax like:
'(-h --help){-h,--help}[Show help and exit]'

Pressing Tab then produced:

_arguments:comparguments:327: invalid argument: (-h --help){-h,--help}[Show help and exit]

Fix Action

Fixed

Code Example

'(-h --help){-h,--help}[Show help and exit]'

---

_arguments:comparguments:327: invalid argument: (-h --help){-h,--help}[Show help and exit]

---

mkdir -p ~/.zfunc
hermes completion zsh > ~/.zfunc/_hermes
autoload -Uz compinit
fpath=(~/.zfunc $fpath)
compinit

---

hermes <TAB>

---

_arguments:comparguments:327: invalid argument: (-h --help){-h,--help}[Show help and exit]
RAW_BUFFERClick to expand / collapse

Summary

hermes completion zsh generates an invalid zsh completion script for compinit / ~/.zfunc/_hermes installs.

Two concrete problems showed up on my machine:

  1. the generated file ended with _hermes "$@", which is wrong for an autoloaded completion file under compinit
  2. the top-level _arguments spec used invalid syntax like:
'(-h --help){-h,--help}[Show help and exit]'

Pressing Tab then produced:

_arguments:comparguments:327: invalid argument: (-h --help){-h,--help}[Show help and exit]

Expected behavior

hermes completion zsh should generate a valid autoloadable zsh completion file that works when saved as ~/.zfunc/_hermes and loaded through compinit.

Repro

mkdir -p ~/.zfunc
hermes completion zsh > ~/.zfunc/_hermes
autoload -Uz compinit
fpath=(~/.zfunc $fpath)
compinit

Then type:

hermes <TAB>

Actual behavior

Completion crashes with:

_arguments:comparguments:327: invalid argument: (-h --help){-h,--help}[Show help and exit]

Notes

This seems most likely to affect users who install zsh completions the standard compinit way instead of eval "$(hermes completion zsh)".

Sanitized environment

  • OS: macOS 26.4.1
  • Arch: arm64
  • zsh: 5.9 (arm64-apple-darwin25.0)
  • Hermes: v0.13.0 (2026.5.7)
  • Shell setup: zim + powerlevel10k
  • Completion install mode: ~/.zfunc/_hermes + compinit

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

hermes completion zsh should generate a valid autoloadable zsh completion file that works when saved as ~/.zfunc/_hermes and loaded through compinit.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix zsh completion breaks for compinit/~/.zfunc installs [1 pull requests]