-
-
Notifications
You must be signed in to change notification settings - Fork 497
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
Fixed bash completion command in setup docs #2696
Conversation
Signed-off-by: Marc <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
```bash | ||
source <(gopass completion bash) | ||
gopass completion bash | sudo tee $(pkg-config --variable=completionsdir bash-completion) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is pkg-config really usually bundled with bash or with most distros nowadays?
I think @AnomalRoil may have a good point. Availability of
|
Found an issue in this PR, silly typo on my end, will amend and re-open or create another if needed Instead of
It should be
|
* Updated bash autocompletion setup commands Signed-off-by: Marc <[email protected]> * Fix typo with bash completions command in setup.md Signed-off-by: Marc <[email protected]> --------- Signed-off-by: Marc <[email protected]>
We can require or recommend the |
Updated bash completion command in
setup.md
that would not persist past end of shell.Installing bash completions in the system wide location should be better suggesting by default user-level install in
~/.bashrc
asgopass
is installed system wide as well.This should be more inline with best practices for allowing the user to manually set their bash completion commands per https://github.com/scop/bash-completion
Adding completions by default on install would be better in the long term though. Potentially as part of package install by default, as pass does (see pass makefile) or a builtin command to install completions post download.