From 4a2a90e2ca09e3c0ab5b1463cc002e0e07002634 Mon Sep 17 00:00:00 2001 From: Andrew Coleman Date: Tue, 13 Apr 2021 14:49:35 -0400 Subject: [PATCH] make xhost.sh into a template --- dot_bashrc.d/xhost.sh | 1 - dot_bashrc.d/xhost.sh.tmpl | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) delete mode 100644 dot_bashrc.d/xhost.sh create mode 100644 dot_bashrc.d/xhost.sh.tmpl diff --git a/dot_bashrc.d/xhost.sh b/dot_bashrc.d/xhost.sh deleted file mode 100644 index ea317c5..0000000 --- a/dot_bashrc.d/xhost.sh +++ /dev/null @@ -1 +0,0 @@ -[[ "$(uname -s)" == "Darwin" ]] || xhost +local:root > /dev/null 2>&1 && true diff --git a/dot_bashrc.d/xhost.sh.tmpl b/dot_bashrc.d/xhost.sh.tmpl new file mode 100644 index 0000000..0b795ea --- /dev/null +++ b/dot_bashrc.d/xhost.sh.tmpl @@ -0,0 +1,3 @@ +{{ if (eq .chezmoi.os "linux" ) }} +xhost +local:root > /dev/null 2>&1 +{{ end }}