I cant seem to get Docker autocompletion working using Oh My Zsh on macOS
I have the following in my .zshrc file
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
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
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
I have docker version 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
我最终卸载了 zsh & oh my zsh 并恢复到 bash 然后重新安装 zsh 然后是 oh my zsh 现在它正在工作
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.