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

15 lines
445 B
Bash

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