feat: enhance Docker alias to support podman fallback

- Replaced the Docker alias with a function that checks for podman availability.
- If podman is installed, it uses podman; otherwise, it defaults to the Docker command.
This commit is contained in:
Tri Vo Khac committed 2025-04-19 04:12:57 +00:00
1 parent 05244511c2
commit dec5f076be
1 file changed
+7 -2
+7 -2
View File
@@ -16,5 +16,10 @@ alias gc='git commit'
alias gp='git push' alias gp='git push'
alias gl='git pull' alias gl='git pull'
# Docker shortcuts docker() {
alias docker='podman' if command -v podman >/dev/null 2>&1; then
podman "$@"
else
command docker "$@"
fi
}