match hostnames via prefix

This commit is contained in:
2026-08-11 11:17:33 -04:00
parent f656443dbd
commit 6449a233c0
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
README.md README.md
{{ if or (eq .chezmoi.hostname "daybreak") (eq .chezmoi.hostname "epoch") (eq .chezmoi.hostname "UGC13335X84") (eq .chezmoi.hostname "UGCB2YBS33") (eq .chezmoi.hostname "UGC1C4PJF24") (eq .chezmoi.hostname "UGC1C6Z2PC4") (env "ANDROID_ROOT") }} {{ if or (eq .chezmoi.hostname "daybreak") (eq .chezmoi.hostname "epoch") (hasPrefix "UGC" .chezmoi.hostname) (env "ANDROID_ROOT") }}
.config/beets .config/beets
.config/davfs2/secrets .config/davfs2/secrets
.config/kitty .config/kitty
@@ -9,7 +9,7 @@ README.md
.config/waybar .config/waybar
{{ end }} {{ end }}
{{ if or (eq .chezmoi.hostname "daybreak") (eq .chezmoi.hostname "epoch") (eq .chezmoi.hostname "UGC13335X84") (eq .chezmoi.hostname "UGCB2YBS33") (eq .chezmoi.hostname "UGC1C4PJF24") }} {{ if or (eq .chezmoi.hostname "daybreak") (eq .chezmoi.hostname "epoch") (hasPrefix "UGC" .chezmoi.hostname) }}
.local/share/gnupg/sshcontrol .local/share/gnupg/sshcontrol
{{ end }} {{ end }}
+1 -1
View File
@@ -2,7 +2,7 @@
autocrlf = input autocrlf = input
safecrlf = warn safecrlf = warn
[user] [user]
{{- if eq .chezmoi.hostname "UGC13335X84" }} {{- if hasPrefix "UGC" .chezmoi.hostname }}
email = jbeckmey@ford.com email = jbeckmey@ford.com
{{- else }} {{- else }}
email = joel@beckmeyer.us email = joel@beckmeyer.us