简体   繁体   English

哦,我的 OSX 上的 ZSH Docker 自动完成功能不起作用

[英]Oh My ZSH Docker Autocompletion on OSX not working

I cant seem to get Docker autocompletion working using Oh My Zsh on macOS我似乎无法在 macOS 上使用 Oh My Zsh 使 Docker 自动完成工作

I have the following in my .zshrc file我的.zshrc文件中有以下内容

plugins=(docker git brew osx)

The git, brew and osx autocompletion is working, if I type docker and tab I get a list of files not docker commands git、brew 和 osx 自动完成正在工作,如果我输入 docker 和 tab,我会得到一个文件列表,而不是 docker 命令

I have got the docker plugin installed in the _docker file in oh-my-zsh/plugins/docker directory and can confirm the the file is version 0.3.0 and is the same as https://github.com/felixr/docker-zsh-completion我已经在oh-my-zsh/plugins/ docker目录下的_docker文件中安装了docker插件,并且可以确认该文件是 0.3.0 版本并且与https://github.com/felixr/docker-相同zsh-完成

I have tried adding commas between the plugins, putting them on new lines as others have posted in other threads.我尝试在插件之间添加逗号,将它们放在新的行上,就像其他人在其他线程中发布的那样。

I have also removed oh-my-zsh and reinstalling still no joy我也删除了 oh-my-zsh 并重新安装仍然没有乐趣

I have docker version 18.09.1我有 Docker 版本 18.09.1

docker version
Client: Docker Engine - Community
 Version:           18.09.1
 API version:       1.39
 Go version:        go1.10.6
 Git commit:        4c52b90
 Built:             Wed Jan  9 19:33:12 2019
 OS/Arch:           darwin/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          18.09.1
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.6
  Git commit:       4c52b90
  Built:            Wed Jan  9 19:41:49 2019
  OS/Arch:          linux/amd64
  Experimental:     false

I have just tried installing on a Ubuntu machine and it works perfectly, have also tried on another Mac and had the same problem我刚刚尝试在 Ubuntu 机器上安装,它运行良好,也在另一台 Mac 上尝试过,但遇到了同样的问题

我最终卸载了 zsh & oh my zsh 并恢复到 bash 然后重新安装 zsh 然后是 oh my zsh 现在它正在工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM