From d27d6f42761013b18f38596f5fee6db2db12fc10 Mon Sep 17 00:00:00 2001 From: Ibrahim Muftee Date: Tue, 30 Jun 2026 18:33:52 -0500 Subject: feat(git): simplify homedir logic --- dot_gitconfig.tmpl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'dot_gitconfig.tmpl') diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index 0abe1e4..07a769d 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -10,11 +10,7 @@ {{/* This file supports Go's text/template language. */ -}} [core] - {{ if .work -}} - excludesfile = !/home/u_muftei/.gitignore - {{ else -}} - excludesfile = !/home/ibrahim/.gitignore - {{ end -}} + excludesfile = !{{ .chezmoi.homeDir }}/.gitignore [init] defaultBranch = main [push] -- cgit v1.2.3