-
Notifications
You must be signed in to change notification settings - Fork 442
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
Git autocomplete stopped working #73
Comments
I recently tried to put:
into the contents of |
Hi @Nikitaw99, It sounds like git tab completion was once working but now suddenly stopped.
Can you try to undo these changes and see if it fixes the git tab completion issues? I think you might have been following these hub aliasing instructions. Outside of gitsome, are you getting git tab completions to work? |
Yes! Atleast they are working. Or atleast outside of And no, I didn't know about this. I think I tried:
I am mostly looking for a way to "reset" the autocompletion. |
Have you tried undoing these changes? To reset bash completions just delete |
I don't know how to undo them,
I just removed |
I added this to
Yet the completions still don't work. |
@Nikitaw99 unfortunately I'm not sure how to help fix the problem you're encountering that seems to be local to your system. Perhaps the community might jump in with a suggestion. |
I have the same problem without using hub at all in the following environment: windows 7, git-for-windows 2.9.0 , bash that comes with git, In my environment:
I believe the issue occurs at xnosh layer but I didn't get much further. |
@orionlee Interesting, do you mind posting the change and I can take a look? |
@donnemartin Attached please see the hack: Basically I treat git expansion similar to gh, and use the existing hardcoded META_LOOKUP_GIT to provide a list of git commands. I should add that given the existing mechanism in providing descriptions to shell-completed git commands fail to yield any in my environement xonsh code that calls build_completions_with_meta, I conclude the problem is that xnosh does not complete git in my environment. |
@orionlee thanks! |
@donnemartin I am seeing this same problem on brand new installs on two different computers. I just found out about gitsome, and tried to install it on two different machines (one Windows 10, one macOS 10.12). On both machines, I can get autocompletions for gh commands but not for git commands. When I type Please let me know if you have any suggestions, or if there is any other information I can provide to help reproduce and fix this. Thanks in advance! |
Hi @gifford, there does seem to be a bug on Windows based on these reports, I've labeled this ticket as a bug. For Mac I think this the first I've heard of issues with the git autocompleter. Does the enabling bash completions section of the README help? |
Reinstalled |
@donnemartin I didn't realize that the git autocompleter depended on bash completions. Based on your suggestion, I discovered that I did not have bash completions set up for git on my Mac. Now that I set them up, the autocompleter works as well. The Windows issue is still a problem - I verified that I can complete git commands with the tab key in the Windows command line, but I still don't get any git-related autocomplete options in the drop-down with gitsome. |
Thank you for an excellent tool. |
@modulexcite thanks for the additional info! Thanks to orionlee, who has done an initial investigation on this with #73 (comment) and #73 (comment). |
Thanks @donnemartin, I can confirm that the workaround provided by @orionlee on this thread enables the autocompletion of git commands now but not for the git-extras commands. Thanks @orionlee. Below are my findings so far, Hopefully this helps other people trying to figure out why it isn't working.
|
I am not sure what I did, but I guess the git autocompletion broke for me...
I think it happened while I was trying to set
git=hub
so that I don't always have to usehub
.Now it broke...
I have tried reinstalling

gitsome
, but the issue still occurs. Any help?Also, I was using it on windows. I looked here on how to add it back, but I simply can't find any of the paths in:
The text was updated successfully, but these errors were encountered: