env: set DOCKER_HOST to podman socket, if it exists

This commit is contained in:
crater2150 2024-07-16 01:06:26 +02:00
parent 54133a240b
commit 761fa84261

3
env/20_dockerhost.zsh vendored Normal file
View file

@ -0,0 +1,3 @@
if [[ -e $XDG_RUNTIME_DIR/podman/podman.sock ]]; then
export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock
fi