From 6449a233c0fe6d9954d4d34fa72d84a7b7b6dfb3 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Tue, 11 Aug 2026 11:17:33 -0400 Subject: [PATCH] match hostnames via prefix --- .chezmoiignore | 4 ++-- dot_config/git/config.tmpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.chezmoiignore b/.chezmoiignore index ad5a409..90f4c17 100644 --- a/.chezmoiignore +++ b/.chezmoiignore @@ -1,6 +1,6 @@ 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/davfs2/secrets .config/kitty @@ -9,7 +9,7 @@ README.md .config/waybar {{ 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 {{ end }} diff --git a/dot_config/git/config.tmpl b/dot_config/git/config.tmpl index f72d299..518d092 100644 --- a/dot_config/git/config.tmpl +++ b/dot_config/git/config.tmpl @@ -2,7 +2,7 @@ autocrlf = input safecrlf = warn [user] -{{- if eq .chezmoi.hostname "UGC13335X84" }} +{{- if hasPrefix "UGC" .chezmoi.hostname }} email = jbeckmey@ford.com {{- else }} email = joel@beckmeyer.us