Skip to content

Commit

Permalink
feat(chezmoi): add support for Docker container connections and allow…
Browse files Browse the repository at this point in the history
… any host connections from .Xprofile
  • Loading branch information
entelecheia committed Apr 5, 2024
1 parent e709f29 commit 9c76a53
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions chezmoi/dot_config/shrc/20-export.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,10 @@ fi
if command -v fig >/dev/null 2>&1 && [ -d "${HOME}/.fig/bin" ]; then
export PATH="${HOME}/.fig/bin:${PATH}"
fi

{{ if not .system.is_wsl -}}
# Allow connections from any host
export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
# Allow connections from Docker containers
export LIBGL_ALWAYS_INDIRECT=1
{{- end }}

0 comments on commit 9c76a53

Please sign in to comment.