-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
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 not working #766
Comments
here it's working, a little slow, but it can complete the branch names (including only remote ones) |
+1 on this. Also, if I click ctrl+c, after clicking tab, it stops doing what it's parsing, and autocompletes instantly, so it must be trying to look for something else besides checking on branches to autocomplete (or not sure if it's the actual git, and not zsh, behavior that kicks in after clicking ctrl+c) |
+1 on this none of my plugins seem to have completion working either. completion will always look for filenames |
So anyone knows what the problem is? :) |
I added source /usr/local/Cellar/git/1.7.8.3/etc/bash_completion.d to my .zshrc and disabled alias git="hub" and it is working for now. Should work out of the box though. |
Experiencing the same thing under Ubuntu 11.10. Using the |
Can confirm this also happens on OSX Lion when |
I can confirm |
Using |
that is really slow though. |
I'm actually not getting any completion whatsoever, so I have to manually type the filenames. Running Debian Squeeze. |
Newer version of hub installs the following: $ which git
git () {
if ! (( $+_has_working_hub ))
then
hub --version &> /dev/null
_has_working_hub=$(($? == 0))
fi
if (( $_has_working_hub ))
then
hub "$@"
else
command git "$@"
fi
} I can definitely confirm that it is very slow when doing completion. |
Since it took me a mental leap, I'll mention. Removing the alias then running 'hub' for commands like 'hub remote add' and 'hub fork' works too. Not as sexy, but it works and keeps regular git commands fast. |
+1
|
@cj's workaround works for me and isn't slow at all. |
Yeah:
is the shit. My life, workflow, and sanity are now restored. |
github plugin doesn't work and hub --version
git version 1.8.0
hub version 1.11.2-g1c5d3bf
zsh --version
zsh 5.0.2 (x86_64-unknown-linux-gnu) |
Same issue:
|
I have been having similar issues very recently as @bitoiu after an update (same version string). |
Try #4444, there is a conflict with current |
That fixed it for me (actually just updated today)! Thanks. |
I've just experienced the same issue, using the My fix is to add this at the bottom of my # Fix hub alias
unalias git
function git() { hub $@; } |
My fix for this issue - |
This did it for me. |
git completion is not working. "git checkout bTAB" always tries to complete file names instead of branches etc.
I'm using git via homebrew (brew install git), version 1.7.8. It is located in /usr/local/Cellar/git/1.7.8
My .zshrc is pretty standard, the only plugin I have activated is "git"
The text was updated successfully, but these errors were encountered: