-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
bash completion not working in Fedora 23 #1041
Comments
Thanks for reporting. Our completion scripts right now are wonky and might not work reliably in different environments. For instance, the completion script is heavily dependent on the base |
Unless if have other occurrences that I'm not noticing, |
Thanks for looking that up. Could you please replace your big paste with a link to a gist? That way conversations threads here stay more readable. |
here you go |
That git completion script looks fairly standard. Are you sure it gets sourced before the hub completion script? After the hub completion script is sourced, you still get normal git completions, but not any hub-specific stuff, like |
I have placed an echo entry in both scripts, and surprisingly I see only the output of hub one. But the autocompleted values comes only from git one and not from hub one. despite if I invoke in shell __git_list_all_commands | ag browse
browse I get the augmented list. It looks like it's not used in later steps. |
I can confirm this issue in F23. FWIW, the file is not in /etc/profile.d/ not sure how that bash dir gets picked up in Fedora, or if it runs before/after the git completion stuff. My guess is the ordering is probably the issue.
|
@paoloantinori Can you file a bug upstream please? |
I have found the reason for this bug. git autocompletion is lazy loaded in Fedora. But after you trigger the autocompletion at least once, with Git completion file in Fedora is in |
The SCOP FAQ pertains:
|
I'm not sure if it's just my environment, but I cannot make bash completion working for
hub
in Fedora23.I have actually noticed that I had to put
bash_completion
sourcing above the alias.Now I have bash completion, but only with the original
git
operation and not the augmented list withhub
specific ones.The text was updated successfully, but these errors were encountered: