-
Notifications
You must be signed in to change notification settings - Fork 380
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
allow completion files for, e.g., units #1242
Comments
i apologize, but i can't figure out how to attach the patch (its extension is ".patch", and the error message says they allow a "PATCH" file, bug ...). here it is inline, but let me know if are interested in seeing it in some different form.
|
sorry, two things. the affected commands are
and, the following diff (to the result of the above patch) might solve the performance issue i worried about.
(also fixes a |
Sorry about the long delay. The idea in principle sounds good to me. Could you file this as a pull request so we can review and eventually merge it using the usual process? |
Describe the feature/solution
there is code in bash_completion that binds completion for some commands to
_comp_complete_longopt
, which means, unlesssourced
explicitly into bash, a completion file for any of these commands won't be used.the request is to somehow allow such commands to have a completion file, which would then take over from
_comp_complete_longopt
for that command.Maintenance (please complete the following information)
i'm not sure of the protocol. but, i have a patch that seems to allow this functionality.
other than possibly being wrong, a downside of the patch is that it will have any command in this set commands always go through
_comp_load
(presumably somewhat expensive) before calling_comp_complete_longopt
. if the patch is accepted, that could probably be short-circuited.no
no
The text was updated successfully, but these errors were encountered: