]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/poetry/poetry.plugin.zsh
...
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / poetry / poetry.plugin.zsh
1 # Return immediately if poetry is not found
2 if (( ! $+commands[poetry] )); 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 `poetry`. Otherwise, compinit will have already done that.
8 if [[ ! -f "$ZSH_CACHE_DIR/completions/_poetry" ]]; then
9   typeset -g -A _comps
10   autoload -Uz _poetry
11   _comps[poetry]=_poetry
12 fi
13
14 poetry completions zsh >| "$ZSH_CACHE_DIR/completions/_poetry" &|