zsh/env/90_podman-socket.zsh

6 lines
190 B
Bash

[[ $- == *i* ]] || return 0
if command -v podman &>/dev/null; then
export DOCKER_SOCKET=$(podman system info -f '{{.Host.RemoteSocket.Path}}')
export DOCKER_HOST=unix://$DOCKER_SOCKET
fi