ohmyzsh/plugins/sprite/sprite.plugin.zsh
Jonathan Stacks b6aeb73109
feat(sprite): Add completions for sprite
sprite is the CLI tool for https://docs.sprites.dev

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>
2026-04-20 21:01:30 -05:00

14 lines
417 B
Bash

# Autocompletion for sprite
if (( ! $+commands[sprite] )); then
return
fi
# If the completion file doesn't exist yet, we need to autoload it and
# bind it to `sprite`. Otherwise, compinit will have already done that.
if [[ ! -f "$ZSH_CACHE_DIR/completions/_sprite" ]]; then
typeset -g -A _comps
autoload -Uz _sprite
_comps[sprite]=_sprite
fi
sprite completion zsh >| "$ZSH_CACHE_DIR/completions/_sprite" &|