我正在使用oh-my-zsh
并试图启用git-flow-completion
。我按照here的说明将其安装为插件。
我按照说明克隆了插件文件:
git clone https://github.com/bobthecow/git-flow-completion ~/.oh-my-zsh/custom/plugins/git-flow-completion
我的插件目录结构与安装说明中的示例相同。
我编辑了我的~/.zshrc
文件,包括:
plugins=(git git-flow git-flow-completion)
但是,git flow完成不起作用。当我输入git flow
并点击tab
时,我得到当前目录中的文件列表而不是git flow
子命令。
内置插件工作正常。我编辑了我的~/.zshrc
包括:
plugins=(git git-flow git-flow-completion emoji emoji-clock)
当我打开一个新终端时,random_emoji
和emoji-clock
函数会产生预期的输出,但是git flow完成仍然不起作用。
我added my existing PATH到我的.zshrc
上面加载oh-my-zsh.sh
线。没运气。
我有checked the value of $ZSH_CUSTOM
,它指向安装git-flow-completion
插件的目录。
我想知道自定义插件是否被加载,所以我安装了this auto-stats plugin并且它工作正常,所以这个问题似乎与git-flow-completion
插件隔离。
我也试过直接加载插件文件:
source ~/.oh-my-zsh/custom/plugins/git-flow-completion/git-flow-completion.zsh
此命令没有输出,并且完成仍然不起作用。
我该如何解决此问题?