I have some strange behavior regarding my setup that I can't seem to narrow down.
I am using tab completion in my shell without any issues (my shell is zsh). The issue I'm having is regarding tab completion after issuing a git command.
Example 1 (works fine):
I make a new directory, change into it and git init. I then touch hello.rb. If I do git add <tab> it will change it to git add hello.rb.
Example 2 (doesn't work):
I'm in a rails app that really isn't very big, and if I try to run git add G<tab> with the intent that it will pull up my Gemfile, it just hangs and hangs until I kill it with ctrl-c which outputs:
Killed by signal in __git_complete_index_file after 159s
In zsh I'm using:
# completion
autoload -U compinit
compinit
Has anyone else had this issue? I can work around it but I have to be doing something wrong and I'm unsure where else to look.
Versions of things:
git version 2.1.2
zsh 5.0.7
iTerm2 Build 2.0.0.20141103
Update:
Git v 2.2.0 has fixed this issue so just upgrade if you're running into this issue.