dotfiles/.config/zsh/completion

10 lines
497 B
Bash

#!/usr/bin/zsh
# Auto-complete section
autoload bashcompinit && bashcompinit
command -v kubectl >/dev/null && . <(kubectl completion zsh) && complete -F __start_kubectl k
command -v velero >/dev/null && . <(velero completion zsh) && complete -F __start_velero v
command -v helm >/dev/null && . <(helm completion zsh) && complete -F _helm h
command -v flux >/dev/null && . <(flux completion zsh) && complete -F _flux f
command -v kubectl-ctx >/dev/null && complete -W "$(kubectl-ctx)" kubectl-ctx