Merge pull request #3 from hykilpikonna/copilot/modify-zshrc-use-podman

Use podman fallback only when docker binary is absent
This commit is contained in:
2026-04-18 18:20:42 -04:00
committed by GitHub
+3 -3
View File
@@ -287,10 +287,10 @@ 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
if (( $+commands[podman-compose] )); then
alias docker-compose='podman-compose'
fi
fi