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:
parent
b1b3a020ec
commit
68f3ebb4de
2 changed files with 10 additions and 3123 deletions
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…
Reference in a new issue