-
Notifications
You must be signed in to change notification settings - Fork 384
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 completion does not work #603
Comments
Seems the final part of the bug report template was skipped:
|
I'm sorry. Here we go: |
Thanks. It's kind of hard to tell why exactly what you see happens, but the trace shows that on line 545 the git completion is sourced:
...and on line 662 the completion is installed:
...but on line 699 we start the dynamic search for a file from which the git completion would be loaded. That should not happen if the git completion is already installed. I wonder if there's some subshell at play here when the completions are loaded... Also, line 699 looks weird to me:
I wonder what would be the thing that is defining the |
Yupp, thanks! Removing /usr/local/etc/bash_completion.d/hub.bash_completion.sh makes it all work again. Thanks a bunch for your help! |
Related issue in hub: mislav/hub#2684 |
Describe the bug
I have installed git-completion@2 version 2.11
I'm using the following code in my .bash_profile
However git completion still does not work.
To reproduce
When I add the following additionally (after the completion inclusion from above), git completion is working:
Expected behavior
I would expect that sourcing the
/etc/profile.d/bash_completion.sh
file should be enoughfor git completion to work.
Versions (please complete the following information)
OSX 11.5.2
echo "$BASH_VERSION"
:5.1.8(1)-release
(IFS=.; echo "${BASH_COMPLETION_VERSINFO[*]}")
:2.11
Additional context
When I remove everything from
/usr/local/Cellar/bash-completion@2/2.11/share/bash-completion/bash_completion
except the part that sources the additional completion files, then it works like expected
basically when the file only has:
Since I'm not too familiar with how exactly git completion works, it is quite hard for me to debug further.
Let me know though if you need additional information
The text was updated successfully, but these errors were encountered: