diff --git a/private_dot_config/git/config.tmpl b/private_dot_config/git/config.tmpl index d45bb86..408b81a 100644 --- a/private_dot_config/git/config.tmpl +++ b/private_dot_config/git/config.tmpl @@ -84,17 +84,17 @@ followTags = true [includeIf "hasconfig:remote.*.url:https://github.com/**"] - path = "{{ .chezmoi.homeDir }}{{ .chezmoi.pathSeparator }}.gitconfig.d{{ .chezmoi.pathSeparator }}github.conf" + path = "{{ joinPath .chezmoi.homeDir .gitconfig.d github.conf}}" [includeIf "hasconfig:remote.*.url:git@github.com:*/**"] - path = "{{ .chezmoi.homeDir }}{{ .chezmoi.pathSeparator }}.gitconfig.d{{ .chezmoi.pathSeparator }}github.conf" + path = "{{ joinPath .chezmoi.homeDir .gitconfig.d github.conf}}" [includeIf "hasconfig:remote.*.url:ssh://git@github.com:*/**"] - path = "{{ .chezmoi.homeDir }}{{ .chezmoi.pathSeparator }}.gitconfig.d{{ .chezmoi.pathSeparator }}github.conf" + path = "{{ joinPath .chezmoi.homeDir .gitconfig.d github.conf}}" [includeIf "hasconfig:remote.*.url:ssh://git@gitlab.com:*/**"] - path = "{{ .chezmoi.homeDir }}{{ .chezmoi.pathSeparator }}.gitconfig.d{{ .chezmoi.pathSeparator }}gitlab.conf" + path = "{{ joinPath .chezmoi.homeDir .gitconfig.d gitlab.conf}}" [includeIf "hasconfig:remote.*.url:https://gitlab.com/**"] - path = "{{ .chezmoi.homeDir }}{{ .chezmoi.pathSeparator }}.gitconfig.d{{ .chezmoi.pathSeparator }}gitlab.conf" + path = "{{ joinPath .chezmoi.homeDir .gitconfig.d gitlab.conf}}" [includeIf "hasconfig:remote.*.url:git@gitlab.com:*/**"] - path = "{{ .chezmoi.homeDir }}{{ .chezmoi.pathSeparator }}.gitconfig.d{{ .chezmoi.pathSeparator }}gitlab.conf" + path = "{{ joinPath .chezmoi.homeDir .gitconfig.d gitlab.conf}}" [pager] difftool = true