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
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.
As for why this problem occurs, I don’t know.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
git push or //pressing tab should automatically complete the association. The complete one is origin