1 if (( ! $+commands[helm] )); then
5 # If the completion file does not exist, generate it and then source it
6 # Otherwise, source it and regenerate in the background
7 if [[ ! -f "$ZSH_CACHE_DIR/completions/_helm" ]]; then
8 helm completion zsh | tee "$ZSH_CACHE_DIR/completions/_helm" >/dev/null
9 source "$ZSH_CACHE_DIR/completions/_helm"
11 source "$ZSH_CACHE_DIR/completions/_helm"
12 helm completion zsh | tee "$ZSH_CACHE_DIR/completions/_helm" >/dev/null &|