Use zsh command hash check for podman-compose consistency
Agent-Logs-Url: https://github.com/hykilpikonna/zshrc/sessions/f3bb0455-e68a-4be8-a7d5-b9fe6c79c7c4 Co-authored-by: hykilpikonna <22280294+hykilpikonna@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
d344b98375
commit
a50f0c98b4
+1
-1
@@ -290,7 +290,7 @@ modern-replace 'code' 'visual-studio-code-electron'
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user