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