1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-15 18:30:08 +00:00

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'