Docker for mac command-line completion zsh

broken image
broken image

service names that make sense in a given context (e.g.options that are available for a particular command.Make sure compinit is loaded or do it by adding in ~/.zshrc autoload -Uz compinit & compinit -iĭepending on what you typed on the command line so far, it will complete by adding in ~/.zshrc fpath=(~/.zsh/completion $fpath) Include the directory in your $fpath, e.g. ~/.zsh/completion/ mkdir -p ~/.zsh/completionĬurl -L $(docker-compose version -short)/contrib/completion/zsh/_docker-compose > ~/.zsh/completion/_docker-compose Place the completion script in your /path/to/zsh/completion, using e.g. curl -L $(docker-compose version -short)/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-composeĬompletion will be available upon next login. Place the completion script in /etc/bash_completion.d/ ( /usr/local/etc/bash_completion.d/ on a Mac), using e.g. On a Mac, install with brew install bash-completion If you use a current Linux in a non-minimal installation, bash completion should be available. Compose comes with command completion for the bash and zsh shell.