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

Co-authored-by: Robby Russell <robby@planetargon.com>
This commit is contained in:
Dustin HackerandRobby Russell authored and GitHub committed 2026-09-22 11:32:52 +02:00
1 parent 32d7277ac3
commit 86ef6555e0
3 files changed
+44

No files matched your search

+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"
} &|