Parent directory

timoni.plugin.zsh

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