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
Can't get git-extras completions to work after following the setup docs too #7062
Comments
I think it's because you do
after sourcing OMZ. Try removing that. |
Either that or delete git-extras from your plugin list, I think you'll be good just sourcing the completion file above. |
Tried both of them. No luck! :( How do I debug this problem or help you provide more info? |
Can you complete commands at all, specially git? If so, post the output of |
I can do things like # result of which _git
❯ which _git
_git () {
local _ret=1
local cur cword prev
cur=${words[CURRENT]}
prev=${words[CURRENT-1]}
let cword=CURRENT-1
if (( $+functions[__${service}_zsh_main] ))
then
__${service}_zsh_main
else
emulate ksh -c __${service}_main
fi
let _ret && _default && _ret=0
return _ret
} |
It seems you are using git's completion, so I think the issue is that your brew command didn't work as intended. Try uninstall the brewed git and reinstalling it again; if that doesn't work there may be an issue with your version of brew because it should respect the |
Ok. So did a clean homebrew setup and it did install git without completions. Then I followed the instructions to add git-extras plugin. No no completion works. I just see a bunch of this is what the sourcing and plugins looks like in my zshrc
|
Never mind. I was being stupid this time. I was trying to see git completions on a non git repo :D Thanks. This has solved my problems. :) |
@mcornella Hi! |
I supose you can You could also give priority to the zsh completion folder by putting it first in If you do this
you'll know in which folders there are git completions and you can tell which is git's and which is zsh's by looking at the comments. |
Hi! Since brew has removed support for Can you please suggest a way in which I can make git-extras work again?
Running this gives me the following.
All of which seems to be coming from zsh specific directories and not the installed git directory. |
I think the one installed by homebrew is |
Awesome! That worked 👍 |
I followed the instructions mentioned in the
git-extras
plugin setup page to install git without completions.Here's my
.zshrc
.One thing though. Even though I tried installing git without completions, it probably installed the autocompletions anyway.
Doing
git delete-branch
and hitting tab just cycles through the files.The text was updated successfully, but these errors were encountered: