chezmoi init
This commit is contained in:
commit
530d6d7195
1176 changed files with 111325 additions and 0 deletions
13
dot_oh-my-zsh/plugins/sigstore/README.md
Normal file
13
dot_oh-my-zsh/plugins/sigstore/README.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Sigstore plugin
|
||||
|
||||
This plugin sets up completion for the following [Sigstore](https://sigstore.dev/) CLI tools.
|
||||
|
||||
- [Cosign](https://docs.sigstore.dev/cosign/overview)
|
||||
- [Sget](https://docs.sigstore.dev/cosign/installation#alpine-linux)
|
||||
- [Rekor](https://docs.sigstore.dev/rekor/overview)
|
||||
|
||||
To use it, add `sigstore` to the plugins array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... sigstore)
|
||||
```
|
22
dot_oh-my-zsh/plugins/sigstore/sigstore.plugin.zsh
Normal file
22
dot_oh-my-zsh/plugins/sigstore/sigstore.plugin.zsh
Normal file
|
@ -0,0 +1,22 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue