mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-27 15:30:15 +08:00
feat(docker): generate completion function
Closes #10825 Closes #10912 Closes #11751
This commit is contained in:
parent
b1b3a020ec
commit
68f3ebb4de
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 New Issue
Block a user