2
0

stripe.plugin.zsh 415 B

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