Excuse me, why does this problem occur when pressing tab on git push??
淡淡烟草味2017-05-24 11:33:40
This is because the bash/zsh completion function is implemented by calling the completion function, which means that the completion function can be customized. Please refer to writing a Bash completion script.
Now your problem is bash/ Functions such as __git_remotes
are not loaded when zsh is running. Bash automatically completes the directory according to your own system. You can manually load these files. Such as ./usr/share/bash-completion/ completions/git
.__git_remotes
等函数, 根据你自己的系统 bash 自动补全目录,可以 手动 加载这些文件. 如 . /usr/share/bash-completion/completions/git
迷茫2017-05-24 11:33:40
git push or //pressing tab should automatically complete the association. The complete one is origin