From 8a6fc5c16d49368dc8f9ddd965a9e25ef652e129 Mon Sep 17 00:00:00 2001 From: Haltarys <45515869+Haltarys@users.noreply.github.com> Date: Tue, 20 Jun 2023 22:27:14 +0200 Subject: [PATCH] fix(docker): use `command docker` (#11766) --- plugins/docker/docker.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/docker/docker.plugin.zsh b/plugins/docker/docker.plugin.zsh index e8aad9230..434b1fc60 100644 --- a/plugins/docker/docker.plugin.zsh +++ b/plugins/docker/docker.plugin.zsh @@ -38,7 +38,7 @@ fi { # `docker completion` is only available from 23.0.0 on - local _docker_version=$(docker version --format '{{.Client.Version}}' 2>/dev/null) + local _docker_version=$(command docker version --format '{{.Client.Version}}' 2>/dev/null) if is-at-least 23.0.0 $_docker_version; then # 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. @@ -47,6 +47,6 @@ fi autoload -Uz _docker _comps[docker]=_docker fi - docker completion zsh >| "$ZSH_CACHE_DIR/completions/_docker" + command docker completion zsh >| "$ZSH_CACHE_DIR/completions/_docker" fi } &|