feat(docker): generate completion function

Closes #10825
Closes #10912
Closes #11751
This commit is contained in:
Carlo Sala 2023-06-15 11:16:25 +02:00
parent b1b3a020ec
commit 68f3ebb4de
No known key found for this signature in database
GPG Key ID: DA6FB450C1A4FE9A
2 changed files with 10 additions and 3123 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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'