]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/helm/helm.plugin.zsh
initial
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / helm / helm.plugin.zsh
1 if (( ! $+commands[helm] )); then
2   return
3 fi
4
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"
10 else
11   source "$ZSH_CACHE_DIR/completions/_helm"
12   helm completion zsh | tee "$ZSH_CACHE_DIR/completions/_helm" >/dev/null &|
13 fi