1 # Return immediately if poetry is not found
2 if (( ! $+commands[poetry] )); then
6 # If the completion file doesn't exist yet, we need to autoload it and
7 # bind it to `poetry`. Otherwise, compinit will have already done that.
8 if [[ ! -f "$ZSH_CACHE_DIR/completions/_poetry" ]]; then
11 _comps[poetry]=_poetry
14 poetry completions zsh >| "$ZSH_CACHE_DIR/completions/_poetry" &|