-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing bash completion requires root privileges #2295
Comments
My solution was to add this to my
|
It would be a good idea to show it in the docs, how to add this to the users home folder. Just like for the other shells. Happy to review a PR for this :) fin swimmer |
This changes the recommendation for bash completions to install in the user's home directory instead of the global `/etc` which would require root access. The expression is exactly how bash completions looks for the directory. Comes from: https://github.com/scop/bash-completion/blob/9e98e2558c0625340013b123880ebb6bedc0d1b3/bash_completion#L2262 Also a section is added about how to dynamically add the completions instead of creating a static file and describes the pros and cons of doing it that way instead. Fixes python-poetry#2295
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
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:
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 beinstead of
.
The text was updated successfully, but these errors were encountered: