Do not run expensive env initializations for non-interactive shells
This commit is contained in:
parent
87ced67ef2
commit
03e0518f6f
4 changed files with 13 additions and 1 deletions
2
env/90_podman-socket.zsh
vendored
2
env/90_podman-socket.zsh
vendored
|
|
@ -1,3 +1,5 @@
|
|||
[[ $- == *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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue