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:
1 parent
05244511c2
commit
dec5f076be
1 file changed
+7
-2
@@ -16,5 +16,10 @@ alias gc='git commit'
|
||||
alias gp='git push'
|
||||
alias gl='git pull'
|
||||
|
||||
# Docker shortcuts
|
||||
alias docker='podman'
|
||||
docker() {
|
||||
if command -v podman >/dev/null 2>&1; then
|
||||
podman "$@"
|
||||
else
|
||||
command docker "$@"
|
||||
fi
|
||||
}
|
||||
Reference in new issue
Block a user