Install cleo from main branch to fix poetry completions
https://github.com/python-poetry/poetry/issues/6835
$ . <(poetry completions bash)
bash: /dev/fd/63: line 40: syntax error near unexpected token `clear'
bash: /dev/fd/63: line 40: ` (cache clear)'
But after installing cleo
from main:
$ pip install git+https://github.com/python-poetry/cleo.git
$ . <(poetry completions bash)
<Works fine; completions work>
Edited by Deep Chatterjee