diff options
| author | Ibrahim Muftee <ibrahim@muftee.net> | 2026-06-30 18:33:52 -0500 |
|---|---|---|
| committer | Ibrahim Muftee <ibrahim@muftee.net> | 2026-07-01 00:23:31 -0400 |
| commit | d27d6f42761013b18f38596f5fee6db2db12fc10 (patch) | |
| tree | 3e1ababdce30c9b2bdcfbab8918d1b4d0951ea66 | |
| parent | 2166bb767567a40a25e3e908e3bc94a1ff34cc69 (diff) | |
feat(git): simplify homedir logic
| -rw-r--r-- | dot_gitconfig.tmpl | 6 |
1 files changed, 1 insertions, 5 deletions
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] |
