Update file .chezmoi.yaml.tmpl

This commit is contained in:
Brian Zalewski 2023-01-06 00:05:19 +00:00
parent 7a3e2eaefc
commit 1dbaafc840

View file

@ -55,7 +55,7 @@
{{- if (.chezmoi.kernel.osrelease | lower | contains "microsoft") -}} {{- if (.chezmoi.kernel.osrelease | lower | contains "microsoft") -}}
{{- $chassisType = "wsl" }} {{- $chassisType = "wsl" }}
{{- else -}}regexFind "[a-zA-Z][1-9]" "abcd1234" {{- else -}}regexFind "[a-zA-Z][1-9]" "abcd1234"
{{- $chassisType = (regexFind "Chassis: .*" "(output "hostnamectl") | replace "Chassis: " "") }} {{- $chassisType = (regexFind "Chassis.*" "(output "hostnamectl") | replace "Chassis: " "") }}
{{- end -}} {{- end -}}
{{- else if eq .chezmoi.os "darwin" }} {{- else if eq .chezmoi.os "darwin" }}
{{- if contains "MacBook" (output "sysctl" "-n" "hw.model") }} {{- if contains "MacBook" (output "sysctl" "-n" "hw.model") }}