Update file .chezmoi.yaml.tmpl
This commit is contained in:
parent
1dbaafc840
commit
262982fc0c
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@
|
||||||
{{- else if eq .chezmoi.os "linux" }}
|
{{- else if eq .chezmoi.os "linux" }}
|
||||||
{{- 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 -}}
|
||||||
{{- $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" }}
|
||||||
|
|
Loading…
Reference in a new issue