New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zsh autocompletion: docker compose #3955
Comments
Looks like we need something for zsh similar to this change for bash: #3752 |
Hi, Any clues? |
Waiting for it as well. But if you need it right now - there are autocomplete thing that supports both |
Based on reading through ohmyzsh/ohmyzsh#11751, I used
|
Description
Hi!
Just finished setup of my new VM (Ubuntu + zsh + ohmyzsh) and discovered that:
docker com [tab]
doesn't have compose in it. It provides:bash
works without an issue.docker-compose [tab]
works as expected.docker compose version
works as expected. Any command written manually works ok.docker composer [tab]
doesn't work (no suggestions).Took a look on the https://github.com/docker/cli/tree/master/contrib/completion and, yup, there are no subcommands for compose for zsh.
Relevant config for bash is here: https://github.com/docker/cli/blob/master/contrib/completion/bash/docker#L5400
Small note, if you find this before the feature is implemented, the easiest workaround is using https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/docker-compose, which provides handy
dco
alias fordocker-compose
;)The text was updated successfully, but these errors were encountered: