feat(hermes): add hermes plugin (#14111)

Co-authored-by: Robby Russell <robby@planetargon.com>
This commit is contained in:
Dustin Hacker
2026-09-22 11:32:52 +02:00
committed by GitHub
co-authored by Robby Russell
parent 32d7277ac3
commit 86ef6555e0
3 changed files with 44 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
if (( ! $+commands[hermes] )); then
return
fi
if [[ ! -f "$ZSH_CACHE_DIR/completions/_hermes" ]]; then
typeset -g -A _comps
autoload -Uz _hermes
_comps[hermes]=_hermes
fi
zmodload -F zsh/files b:zf_mv
() {
local TMPPREFIX="$ZSH_CACHE_DIR/completions/_hermes"
zf_mv -f -- =( hermes completion zsh < /dev/null 2> /dev/null ) "$TMPPREFIX"
} &|