Skip to content

Installing bash completion requires root privileges #2295

Closed
@mathieucaroff

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/docsDocumentation issues/improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions