Make sure you have installed
oh-my-zsh on your computer.
WITH OH-MY-ZSH SHELL
docker-compose to the plugins list in
~/.zshrc to run autocompletion within the oh-my-zsh shell. In the following example,
... represent other Zsh plugins you may have installed.
plugins=( ... docker docker-compose )
WITHOUT OH-MY-ZSH SHELL
Place the completion script in your
mkdir -p ~/.zsh/completion curl -L https://raw.githubusercontent.com/docker/compose/1.25.0/contrib/completion/zsh/_docker-compose > ~/.zsh/completion/_docker-compose curl -L https://raw.githubusercontent.com/docker/docker/master/contrib/completion/zsh/_docker > ~/.zsh/completion/_docker
Include the directory in your
$fpath by adding in
compinit is loaded or do it by adding in
autoload -Uz compinit && compinit -i
Then reload your shell:
exec $SHELL -l
plugins=(git docker) and restart my Terminal, but [TAB][TAB] is not working.