1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-04-10 16:32:00 +00:00
Files
ohmyzsh-mirror/plugins/operator-sdk/operator-sdk.plugin.zsh
2026-04-02 23:47:55 +02:00

15 lines
495 B
Bash

# Autocompletion for the Operator SDK CLI (operator-sdk).
if (( ! $+commands[operator-sdk] )); then
return
fi
# If the completion file doesn't exist yet, we need to autoload it and
# bind it to `operator-sdk`. Otherwise, compinit will have already done that.
if [[ ! -f "$ZSH_CACHE_DIR/completions/_operator-sdk" ]]; then
typeset -g -A _comps
autoload -Uz _operator-sdk
_comps[operator-sdk]=_operator-sdk
fi
operator-sdk completion zsh >| "$ZSH_CACHE_DIR/completions/_operator-sdk" &|