mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
merge
This commit is contained in:
parent
a8c56f5231
commit
8274156fae
296 changed files with 6279 additions and 3141 deletions
9
plugins/stripe/README.md
Normal file
9
plugins/stripe/README.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# Struoe
|
||||
|
||||
This plugin provides completion for the [Stripe CLI](https://stripe.com/docs/stripe-cli).
|
||||
|
||||
To use it add stripe to the plugins array in your zshrc file.
|
||||
|
||||
```bash
|
||||
plugins=(... stripe)
|
||||
```
|
||||
13
plugins/stripe/stripe.plugin.zsh
Normal file
13
plugins/stripe/stripe.plugin.zsh
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
if (( ! $+commands[stripe] )); then
|
||||
return
|
||||
fi
|
||||
|
||||
# If the completion file doesn't exist yet, we need to autoload it and
|
||||
# bind it to `stripe`. Otherwise, compinit will have already done that.
|
||||
if [[ ! -f "$ZSH_CACHE_DIR/completions/_stripe" ]]; then
|
||||
typeset -g -A _comps
|
||||
autoload -Uz _stripe
|
||||
_comps[stripe]=_stripe
|
||||
fi
|
||||
|
||||
stripe completion --shell zsh --write-to-stdout >| "$ZSH_CACHE_DIR/completions/_stripe" &|
|
||||
Loading…
Add table
Add a link
Reference in a new issue