zsh: Add poetry completion

This commit is contained in:
Simon Bruder 2020-04-14 22:59:58 +00:00
parent c8b0cf9f52
commit e377eee12a
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
2 changed files with 7 additions and 0 deletions

View file

@ -234,3 +234,6 @@ command -v hcloud >/dev/null && source <(hcloud completion zsh)
## pipx
command -v pipx >/dev/null && source <(register-python-argcomplete pipx)
## poetry
command -v poetry >/dev/null && ([ -e ~/.zfunc/_poetry ] || poetry completions zsh > ~/.zfunc/_poetry)

View file

@ -2,3 +2,7 @@
source "$HOME/.homesick/repos/homeshick/homeshick.sh"
fpath=($HOME/.homesick/repos/homeshick/completions $fpath)
## completions
mkdir -p ~/.zfunc
fpath+=~/.zfunc