mkdir -p ~/.oh-my-zsh/plugins/docker/
curl -fLo ~/.oh-my-zsh/plugins/docker/_docker https://raw.githubusercontent.com/docker/cli/master/contrib/completion/zsh/_docker
- Add
docker
toplugins
section in~/.zshrc
exec zsh
Created
August 13, 2017 02:12
-
-
Save ro31337/b2c33ad0b90636e9e3bb76fb4fb76907 to your computer and use it in GitHub Desktop.
Zsh docker completion
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't use oh-my-zsh. Below worked for me:
curl -fLo /usr/local/share/zsh/site-functions/_docker https://raw.githubusercontent.com/docker/cli/master/contrib/completion/zsh/_docker exec zsh