In Zsh, the completion system takes care of things. ![]() Ln -s $etc/docker-compose.bash-completion $(brew -prefix)/etc/bash_completion.d/docker-composeĪdd the following to your ~/.bash_profile: &. Ln -s $etc/docker-machine.bash-completion $(brew -prefix)/etc/bash_completion.d/docker-machine Ln -s $etc/docker.bash-completion $(brew -prefix)/etc/bash_completion.d/docker For example, if you installed bash via Homebrew: etc=/Applications/Docker.app/Contents/Resources/etc Bashīash has built-in support for completion To activate completion for Docker commands, these files need to be copied or symlinked to your bash_completion.d/ directory. The completion scripts may be found inside Docker.app, in the Contents/Resources/etc/ directory and can be installed both in Bash and Zsh. How to configure Bash Completion on Mac for Docker and Docker-ComposeĬopied from the official Docker-for-mac documentation (thanks Brett for the updated doc pointer): Install shell completionĭocker Desktop for Mac comes with scripts to enable completion for the docker, docker-machine, and docker-compose commands.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |