stripe.plugin.zsh
415 bytes
1if (( ! $+commands[stripe] )); then
2 return
3fi
4
5# If the completion file doesn't exist yet, we need to autoload it and
6# bind it to `stripe`. Otherwise, compinit will have already done that.
7if [[ ! -f "$ZSH_CACHE_DIR/completions/_stripe" ]]; then
8 typeset -g -A _comps
9 autoload -Uz _stripe
10 _comps[stripe]=_stripe
11fi
12
13stripe completion --shell zsh --write-to-stdout >| "$ZSH_CACHE_DIR/completions/_stripe" &|