make xhost.sh into a template

This commit is contained in:
Andrew Coleman 2021-04-13 14:49:35 -04:00
commit 4a2a90e2ca
2 changed files with 3 additions and 1 deletions

View file

@ -1 +0,0 @@
[[ "$(uname -s)" == "Darwin" ]] || xhost +local:root > /dev/null 2>&1 && true

View file

@ -0,0 +1,3 @@
{{ if (eq .chezmoi.os "linux" ) }}
xhost +local:root > /dev/null 2>&1
{{ end }}