Parent directory

qodana.plugin.zsh

445 bytes
 1# Autocompletion for the JetBrains Qodana CLI (qodana).
 2if (( ! $+commands[qodana] )); then
 3  return
 4fi
 5
 6# If the completion file doesn't exist yet, we need to autoload it and
 7# bind it to `qodana`. Otherwise, compinit will have already done that.
 8if [[ ! -f "$ZSH_CACHE_DIR/completions/_qodana" ]]; then
 9  typeset -g -A _comps
10  autoload -Uz _qodana
11  _comps[qodana]=_qodana
12fi
13
14qodana completion zsh >| "$ZSH_CACHE_DIR/completions/_qodana" &|