From d344b98375c70fc9cd05e2a84ea8bc049081d990 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 18 Apr 2026 22:18:52 +0000 Subject: [PATCH] Use podman only when docker binary is unavailable Agent-Logs-Url: https://github.com/hykilpikonna/zshrc/sessions/f3bb0455-e68a-4be8-a7d5-b9fe6c79c7c4 Co-authored-by: hykilpikonna <22280294+hykilpikonna@users.noreply.github.com> --- scripts/zshrc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/zshrc.sh b/scripts/zshrc.sh index c86fd3b..abcffa8 100755 --- a/scripts/zshrc.sh +++ b/scripts/zshrc.sh @@ -287,8 +287,8 @@ modern-replace 'tar' 'gtar' # for ArchLinux compat modern-replace 'code' 'visual-studio-code-electron' -# If podman exists and docker doesn't exist, alias docker=podman -if ! command -v docker &> /dev/null && command -v podman &> /dev/null; then +# If podman binary exists and docker binary doesn't exist, alias docker=podman +if (( ! $+commands[docker] && $+commands[podman] )); then alias docker='podman' if command -v podman-compose &> /dev/null; then alias docker-compose='podman-compose'