Closed
Description
In README.md, enabling tab completion for bash requires root privileges. This is inconsistent with (non-hombrew) fish and zsh completion definitions.
Related issue
Bash completion permission denied (#1017)
Note: The solution to the above issue is to use tee:
poetry completions bash | sudo tee /etc/bash_completion.d/poetry.bash-completion
Looking for a solution
Asking google yields this serverfault page: Standard place for user defined bash_completion.d scripts
The bash_completion tool actually sources ~/.bash_completion
file see their FAQ "Where should I install my own local completions?". I thus believe the command for bash completion in README.md should be
poetry completions bash >> ~/.bash_completion
instead of
poetry completions bash > /etc/bash_completion.d/poetry.bash-completion
.
Activity