From 4cdd45338c80d15fad6bb86b9c7bf89ca000237d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 17 Aug 2026 06:16:18 +0000 Subject: [PATCH] fix(docker): create completions cache directory when plugin loads Co-authored-by: mcornella <1441704+mcornella@users.noreply.github.com> --- plugins/docker/docker.plugin.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/docker/docker.plugin.zsh b/plugins/docker/docker.plugin.zsh index 9d7cf8641..ec185aaa3 100644 --- a/plugins/docker/docker.plugin.zsh +++ b/plugins/docker/docker.plugin.zsh @@ -48,6 +48,10 @@ fi 0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}" 0="${${(M)0:#/*}:-$PWD/$0}" +# Ensure cache completions dir exists when the plugin is loaded directly +# (e.g. antigen, where oh-my-zsh.sh might not run). +command mkdir -p "$ZSH_CACHE_DIR/completions" + # 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