diff options
Diffstat (limited to 'dot-oh-my-zsh/plugins/sigstore/sigstore.plugin.zsh')
| m--------- | dot-oh-my-zsh | 0 | ||||
| -rw-r--r-- | dot-oh-my-zsh/plugins/sigstore/sigstore.plugin.zsh | 22 |
2 files changed, 0 insertions, 22 deletions
diff --git a/dot-oh-my-zsh b/dot-oh-my-zsh new file mode 160000 +Subproject 6fe84bf5c82da7b1f6d7c5ec3e5c447721ac8ce diff --git a/dot-oh-my-zsh/plugins/sigstore/sigstore.plugin.zsh b/dot-oh-my-zsh/plugins/sigstore/sigstore.plugin.zsh deleted file mode 100644 index 1f9d77c1..00000000 --- a/dot-oh-my-zsh/plugins/sigstore/sigstore.plugin.zsh +++ /dev/null @@ -1,22 +0,0 @@ -function install_autocompletion { - if (( ! $+commands[$1] )); then - return - fi - - # If the completion file doesn't exist yet, we need to autoload it and - # bind it to `$1` (cosign, sget, rekor-cli). Otherwise, compinit will - # have already done that - if [[ ! -f "$ZSH_CACHE_DIR/completions/_$1" ]]; then - autoload -Uz _$1 - typeset -g -A _comps - _comps[$1]=_$1 - fi - - $1 completion zsh >| "$ZSH_CACHE_DIR/completions/_$1" &| -} - -install_autocompletion cosign -install_autocompletion sget -install_autocompletion rekor-cli - -unfunction install_autocompletion |
