Skip to content
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

[some help required] Add bash completions #542

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Fat-Zer
Copy link
Contributor

@Fat-Zer Fat-Zer commented Nov 13, 2024

I've sketched some bash completions. Nothing extra fancy just command-line options and some a couple of options with predefined values.

To test you may export BASH_COMPLETION_USER_DIR=/path/to/po4a/share/bash-completion/ and then play with po4a -<TAB><TAB> etc.

Note that the completions are using <script> --help, and since po4a has to process PODs to print it, the completions are lagging a bit (~200ms, not absolutely infuriating, but still noticeable and slightly annoying).


But I need some help with installation scripting, I have very little idea how to do it with perl. The files in share/bash-completion/completions are supposed to be installed to directory pointed by pkg-config --variable=completionsdir bash-completion. Usually it's /usr/share/bash-completion/completions.

PS: Also the commit contains several symlinks. I'm not sure if it's ok to store those in the sources. If not, those should be also created during build.

Closes: #417

Closes: mquinson#417
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Please provide a bash completion file for the po4a script
1 participant