zsh: Fix pipx completion conditional

This commit is contained in:
Simon Bruder 2020-05-12 02:18:27 +02:00
parent c847281e8e
commit 05a5080b02
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

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