views:

453

answers:

2

I put the newest git-completion.bash to my .zshrc and I get

/Users/Masi/bin/shells/git/git-completion.bash:2116: command not found: complete
/Users/Masi/bin/shells/git/git-completion.bash:2118: command not found: complete

The lines are

 complete -o bashdefault -o default -o nospace -F _git git 2>/dev/null \
     || complete -o default -o nospace -F _git git 
 complete -o bashdefault -o default -o nospace -F _gitk gitk 2>/dev/null \
     || complete -o default -o nospace -F _gitk gitk

Which command is a substitute for Bash's complete in Zsh?

+6  A: 

I do believe it's a problem, since complete is a built-in Bash command. It's part of Bash's programmable completion feature.

unwind
Thank you for your answer! -- I changed the question.
Masi
+1  A: 

Why not just add complete to zsh? It's open-source, right?

TMN
@TMN: Great point! How can that be done? With the command path?
Masi
I think you'll need to get the source and add "complete" as an internal command. Maybe snag the bash source as well and see how they did it.
TMN