fix(docker): create completions directory if it doesn't already exist

Fixes #13679
This commit is contained in:
Markus Towara 2026-04-09 18:26:47 +02:00 committed by towara
commit 818a9b4e9e

View file

@ -51,6 +51,9 @@ fi
# 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
if [[ ! -f "$ZSH_CACHE_DIR/completions" ]]; then
mkdir -p "$ZSH_CACHE_DIR/completions"
fi
typeset -g -A _comps
autoload -Uz _docker
_comps[docker]=_docker