1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-10-23 04:53:45 +08:00
Files
ohmyzsh/plugins/hermes/hermes.plugin.zsh
2026-09-27 23:26:18 +02:00

16 lines
380 B
Bash

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 ) "$ZSH_CACHE_DIR/completions/_hermes"
} &|