feat(docker): generate completion function

Closes #10825 Closes #10912 Closes #11751
parent b1b3a020
This source diff could not be displayed because it is too large. You can view the blob instead.
# 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 dbl='docker build'
alias dcin='docker container inspect' alias dcin='docker container inspect'
alias dcls='docker container ls' alias dcls='docker container ls'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment