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:
+3
-3
@@ -287,10 +287,10 @@ modern-replace 'tar' 'gtar'
|
|||||||
# for ArchLinux compat
|
# for ArchLinux compat
|
||||||
modern-replace 'code' 'visual-studio-code-electron'
|
modern-replace 'code' 'visual-studio-code-electron'
|
||||||
|
|
||||||
# If podman exists and docker doesn't exist, alias docker=podman
|
# If podman binary exists and docker binary doesn't exist, alias docker=podman
|
||||||
if ! command -v docker &> /dev/null && command -v podman &> /dev/null; then
|
if (( ! $+commands[docker] && $+commands[podman] )); then
|
||||||
alias docker='podman'
|
alias docker='podman'
|
||||||
if command -v podman-compose &> /dev/null; then
|
if (( $+commands[podman-compose] )); then
|
||||||
alias docker-compose='podman-compose'
|
alias docker-compose='podman-compose'
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user