From 262982fc0c427987e31e0054e593b95f0f10969a Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Fri, 6 Jan 2023 00:06:20 +0000 Subject: [PATCH] Update file .chezmoi.yaml.tmpl --- home/.chezmoi.yaml.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.chezmoi.yaml.tmpl b/home/.chezmoi.yaml.tmpl index 13c5d77f..e31a5d85 100644 --- a/home/.chezmoi.yaml.tmpl +++ b/home/.chezmoi.yaml.tmpl @@ -54,7 +54,7 @@ {{- else if eq .chezmoi.os "linux" }} {{- if (.chezmoi.kernel.osrelease | lower | contains "microsoft") -}} {{- $chassisType = "wsl" }} -{{- else -}}regexFind "[a-zA-Z][1-9]" "abcd1234" +{{- else -}} {{- $chassisType = (regexFind "Chassis.*" "(output "hostnamectl") | replace "Chassis: " "") }} {{- end -}} {{- else if eq .chezmoi.os "darwin" }}