Zsh Docker插件不起作用 [英] Zsh Docker Plugin not Working
问题描述
我已经使用oh-my-zsh已有一段时间了,而docker插件由于某种原因最近也因为我而停止工作.
I have been using oh-my-zsh for a while now and the docker plugin as recently stopped working for me for some reason.
我检查了〜/.zshrc文件,并包含了插件
I checked my ~/.zshrc file and the plugin is included
plugins=(git colored-man colorize github jira vagrant virtualenv pip python brew osx zsh-syntax-highlighting docker)
我检查了~/.oh-my-zsh/plugins/docker
目录,并且其中有一个_docker
文件.但是,当我键入docker
并按Tab时,我没有获得以前使用的自动完成快捷键.
I checked the ~/.oh-my-zsh/plugins/docker
directory and there is a _docker
file in there. Yet when I type docker
and press Tab, I get none of the autocomplete shortcuts that I used to get.
我可以确认我的git
插件可以正常工作,但不能正常工作.尝试做exec zsh
和source ~/.zshrc
并重新启动了终端,但是没有运气.
I can confirm that my git
plugin works just fine but not the docker
plugin. Tried doing exec zsh
and source ~/.zshrc
and restarted my terminal but no luck.
我想念什么吗?
推荐答案
我认为您可能会在每个插件之间缺少.
I think you may be missing ,'s in between each plugin.
plugins=(git, colored-man, colorize, github, jira, vagrant, virtualenv, pip, python, brew, osx, zsh-syntax-highlighting, docker)
或者,您可以将每个插件放在单独的行上:
Alternatively you can place each plugin on a separate line:
plugins=(
git
colored-man
colorize
github
jira
vagrant
virtualenv
pip
python
brew
osx
zsh-syntax-highlighting
docker
)
这篇关于Zsh Docker插件不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!