]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/charm/charm.plugin.zsh
52361ce95b60f8e008eff09e5421416bb183957c
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / charm / charm.plugin.zsh
1 # Autocompletion for the Charm CLI (charm).
2 if (( ! $+commands[charm] )); then
3   return
4 fi
5
6 # If the completion file doesn't exist yet, we need to autoload it and
7 # bind it to `charm`. Otherwise, compinit will have already done that.
8 if [[ ! -f "$ZSH_CACHE_DIR/completions/_charm" ]]; then
9   typeset -g -A _comps
10   autoload -Uz _charm
11   _comps[charm]=_charm
12 fi
13
14 charm completion zsh >| "$ZSH_CACHE_DIR/completions/_charm" &|