feat(docker): generate completion function

Closes #10825
Closes #10912
Closes #11751
master
Carlo Sala 3 years ago
parent b1b3a020ec
commit 68f3ebb4de
No known key found for this signature in database
GPG Key ID: DA6FB450C1A4FE9A
  1. 3123
      plugins/docker/_docker
  2. 10
      plugins/docker/docker.plugin.zsh

File diff suppressed because it is too large Load Diff

@ -1,3 +1,13 @@
# If the completion file doesn't exist yet, we need to autoload it and
# bind it to `docker`. Otherwise, compinit will have already done that.
if [[ ! -f "$ZSH_CACHE_DIR/completions/_docker" ]]; then
typeset -g -A _comps
autoload -Uz _docker
_comps[docker]=_docker
fi
docker completion zsh >| "$ZSH_CACHE_DIR/completions/_docker" &|
alias dbl='docker build'
alias dcin='docker container inspect'
alias dcls='docker container ls'

Loading…
Cancel
Save